- commit
- 3ebcbc93554e213103a29bda679eefcf3936ad6a
- parent
- 2c65ae3b4dc52f0d573b278f53f5fdd0054214c1
- author
- Dami <dami.etoile@gmail.com>
| M | CLAUDE.md | 7 | ++++++- |
@@ -91,7 +91,11 @@ Save/load uses `game.Registry` — each package registers its import function vi
9191 4. Export a `Modes` variable (`[]list.Item`) listing available difficulties9292 5. Implement `game.Gamer` on a `Model` struct9393 6. Register the import function in an `init()`: `game.Register("My Puzzle", func(data []byte) (game.Gamer, error) { ... })`94-7. Add the category to `GameCategories` in `model.go`94+7. Add the category to `GameCategories` in `model.go` (maintain alphabetical order)95+8. Add aliases to `categoryAliases` in `resolve.go`96+9. Create a `README.md` in the package directory (see existing games for format)97+10. Create a VHS tape file in `vhs/<game>.tape` (see VHS Tape Files section)98+11. Add a one-line entry to "Current Implementations" below9599 96100 Each package follows a consistent file structure:97101 - `Gamemode.go`: Mode struct, `NewMode()`, `Spawn()`, `Modes` var, `init()` with `game.Register()`@@ -109,6 +113,7 @@ Each package follows a consistent file structure:
109113 - **Sudoku** (`sudoku/`): Classic 9x9 with configurable provided cells. Uses `cell` type with provided/user-entered distinction.110114 - **Hashiwokakero** (`hashiwokakero/`): Connect islands with bridges (1 or 2). Navigation mode and bridge mode. Victory requires all islands satisfied and connected.111115 - **Lights Out** (`lightsout/`): Toggle lights in a cross pattern to turn all off. Grid sizes from 3x3 to 9x9.116+- **Takuzu** (`takuzu/`): Fill grid with two symbols (● and ○). No triples, equal counts, unique lines. Grid sizes from 6x6 to 14x14.112117 113118 ### Supporting Packages114119