
Crazy Checkers
Checkers with character: classic rules, six fighters with a move of their own, prank cards and a comic finishing move when a match is won.
- Role
- Game design, game core, client, server
- Platforms
- Android and iOS
- Status
- In development
- Technology
- Defold, Lua, Rust
Real checkers rules, plus a layer of mischief.
The base game is plain checkers against a bot with five levels. The rules are American, Brazilian or International, or the player's own: board size, number of pieces, backward captures, flying kings and mandatory capture.
On top of it sits a second game. Captures, losses and every sixth move fill a rage meter, and rage buys prank cards such as Freeze, Swap and Bomb. The player also picks one of six fighters, and each brings one move nobody else has: the Pirate hooks a distant man and pulls it close, the Wizard jumps to any empty cell of its row.
A match that is won ends with a finishing move, a short clip and a three-panel comic page. Wins unlock the other fighters.
Core, client, server.
Rules, bot and cards in pure Lua, with no engine API inside. It runs from the command line.
Lua 5.1, LuaJITA Defold app that only draws the state of the core and passes input back to it.
Defold, LuaGuest accounts, rooms by code and live play over WebSocket. It embeds the game core to referee.
Rust, tokio, axum, PostgreSQLTests under two Lua runtimes, perft counts for the rules, and a browser test where two windows play a real game.
perft, smoke testsWhere the engineering is.
The rules exist in one place
The server does not reimplement checkers. It embeds the same Lua core the client runs and referees every move with it, so the client and the server cannot disagree about a rule.
Rust, embedded Lua coreThree rule sets are one table
American, Brazilian and International checkers are presets of one table with six options: board size, rows of men, backward captures, flying kings, mandatory capture and taking the most. Custom rules are the same table with other values, so one move generator serves them all.
American, Brazilian, International, customDeterminism is a rule
A match is a function of the rules, a seed and the list of moves. The core has its own seeded random generator, and a test rejects any call to the engine, the clock or the system inside it.
Pure Lua core, seeded RNG, purity testMove generation checked with perft
The three rule sets are checked against published perft counts: the number of positions reachable in a given number of moves.
perftThe bot plays the cards too
Eleven prank cards and six fighter moves are paid for with rage. A hand holds three cards: the fighter's own move and two from a deck that deals the same cards to both sides in the same order. The bot has a fighter too, and from the second level up it plays a card only when its search says the card pays.
Freeze, Shield, Shove, Swap, Backstep, Revive, Bomb, Crown, Reroll, Crate, DemoteEvery build starts with the tests
Each build first runs the tests and checks the engine calls against the Defold reference.
Lua 5.1, LuaJITA duel, the rules and the cards.



Everything it is made of.
- Game
- Defold 1.14, Lua 5.1
- Server
- Rust, tokio, axum, WebSocket, PostgreSQL
- Tests
- Lua 5.1 and LuaJIT, perft counts, browser smoke tests
- Platforms
- Android and iOS, with an HTML5 build for development
Need this kind of engineering on your team?
I am available now for a senior iOS or macOS role.