Draft copy
RPSLS
Rock, Paper, Scissors, Lizard, Spock for two players. Enter your names, pick your weapons, and the first to five wins.
The problem
A classic kata with a twist: two extra weapons make the win rules too big for a chain of if-statements.
What I built
An Express app with server-rendered EJS views. The game logic lives in small classes (Battle, Player, Weapon) with Mocha tests.
The hard parts
Keeping game state between requests without a database, by serialising it into each page.
What I’d change
The version you can run here is a static port of the same game logic, so it works without a server.