feat(js): m05 game and m06 view with fixtures and tests

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
Lucas Winther
2026-10-28 23:45:10 +01:00
co-authored by Claude Sonnet 5.5
parent 08b462d5cc
commit b83f94894e
12 changed files with 1398 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ const fixtureTests = (name, f) => {
fixtureTests('m04-free-cells', freeCells)
fixtureTests('m04-spawn', spawnApple)
fixtureTests('m04-new-game', newGame)
fixtureTests('m04-tick', tick)
// 3x2 board, one-cell snake, about to eat the apple at (1,0)
const eating = freeze({