Jeffrey M. Barber

Tombstone

cardboardio

Jul 2020 – Nov 2020 · age 38

What it was

The start of a client library for playing board games online: "cardboard" as in the games, "io" as in the domain. It began as a ReasonML attempt abandoned the same day, became a JavaScript prototype, and then a small TypeScript library. Shapes know their bounds and test whether a point is inside, polygons by a winding-number count. A helper solves for a regular hexagon inscribed in a rectangle. Items place shapes with hover, press and click state, a scene holds them, and an engine owns two stacked canvases: the low one for the scene, the high one for the selection band, so dragging never repaints the board. Three modes, Static, Interactive and Edit, decide what a mouse-down means. The demo connected to an early Adama server running a hex exploration game and drew a 7-by-6 hex board. The next step was making a piece move, and there the log stops.

Wins, for the age

What it taught

Genealogy

Ancestors: none on record. A fresh start on the client half of a game table. Descendants: BSG Prototype: rules on the server, a board drawn on canvas. Hearth: the server owns the logic, the client stays thin.

Epitaph

Here lies cardboardio, which drew a perfect hexagon grid and wired it to a server that knew the rules, then went quiet before the first piece moved.