Developer notes
Eleven technical notes from the Play5s code, each with dated sources. They cover how card faces stay readable on a phone, how the games make their own sound, how a chess opponent thinks inside a browser tab, how one game page holds 11 languages, how solitaire taps, drags, hints and Finish work, how Minesweeper, Sudoku and Nonogram check their puzzles, and how a backgammon opponent counts risk.
Cards at 31 pixels
A second, compact drawing inside every card face, and the duplicate-id bug that hid court figures.
5 min readSound without files
Effects built from tones and filtered noise, a limiter that keeps fast play civil, and tables drawn from CSS variables.
6 min readA chess engine in a tab
Six levels defined by node counts, a board that fits in typed arrays, and why a timer would have been the wrong stop.
6 min readOne page, 11 languages
Font stacks that follow html lang, Intl.PluralRules instead of if statements, and a control bar that measures itself.
5 min readDragging cards
One set of handlers for finger, pen and mouse, a drop rule that ignores the fingertip, and the keys that replace dragging.
6 min readOne tap, best place
A short ladder of places, the moves it will not suggest, and a Finish button that shows only for deals that cannot be lost.
5 min readHow Hint picks a move
A short ordered search, a copy of the deal that turns the whole stock, and a verdict that says stuck only after that.
5 min readMinesweeper logic
Mines placed after the first tap, three layers of deduction, and a solver that cannot see the mines.
6 min readSudoku levels
A bitmask solver that stops at two answers, symmetric digging, and a ladder of human techniques that names each level.
5 min readNonogram line solver
One small table that finds what every placement of a line agrees on, and the puzzle builder, hint and clue crossing-off that use it.
5 min readBackgammon shots
Two 18-bit masks per blot, an evaluation in pips, and three levels that differ in what they look at.
6 min read