clone

fifteen puzzle games for the terminal, with daily puzzles, weekly ladders and xp, built on bubble tea

feat: add reset puzzle to initial state (Ctrl+R)

Dami committed 76f8d6b
- Add Reset() method to game.Gamer interface
- Implement Reset in all game modes (nonogram, sudoku, takuzu, hashiwokakero, wordsearch, lightsout)
- Add Ctrl+R keyboard handler in model.go
- Update status bar help text in all games
- Add initialGrid field to takuzu and lightsout (was missing)
- Add TestReset for nonogram
commit
76f8d6b969c045c0541bc405fe17d6bf462c2b6a
parent
2e6d66b874ce29b9bde66b5de7eb28f050da0fe0
author
Dami <dami.etoile@gmail.com>
15 files changed, +133 -18
Mgame/gamer.go5++++
Mhashiwokakero/Model.go10++++++++
Mhashiwokakero/style.go4++--
Mlightsout/Model.go25+++++++++++++++++----
Mlightsout/style.go2+-
Mmodel.go4+++
Mnonogram/Model.go10++++++++
Mnonogram/nonogram_test.go36++++++++++++++++++++++++++++++
Mnonogram/style.go2+-
Msudoku/Model.go6+++++
Msudoku/style.go2+-
Mtakuzu/Model.go21+++++++++++++-----
Mtakuzu/style.go2+-
Mwordsearch/Model.go20+++++++++++++++++
Mwordsearch/style.go2+-
M game/gamer.go +5 -0
M hashiwokakero/Model.go +10 -0
M hashiwokakero/style.go +2 -2
M lightsout/Model.go +20 -5
M lightsout/style.go +1 -1
M model.go +4 -0
M nonogram/Model.go +10 -0
M nonogram/nonogram_test.go +36 -0
M nonogram/style.go +1 -1
M sudoku/Model.go +6 -0
M sudoku/style.go +1 -1
M takuzu/Model.go +15 -6
M takuzu/style.go +1 -1
M wordsearch/Model.go +20 -0
M wordsearch/style.go +1 -1