- commit
- 85b6b40f4980820167364fb6d601b7d706d5fc59
- parent
- 1b891100b6a88f26960bde2dc1d7f90f40563555
- author
- Dami <dami.etoile@gmail.com>
| M | resolve.go | 15 | ++++++++------- |
| M | vhs/ | 2 | +- |
| M | wordsearch/ | 6 | +++--- |
| M | wordsearch/ | 6 | +++--- |
@@ -18,13 +18,14 @@ func normalize(s string) string {
1818 1919 // categoryAliases maps short or alternate names to canonical category names.2020 var categoryAliases = map[string]string{21- "hashi": "hashiwokakero",22- "bridges": "hashiwokakero",23- "lights": "lights out",24- "nonogram": "nonogram",25- "sudoku": "sudoku",26- "words": "word search",27- "ws": "word search",21+ "hashi": "hashiwokakero",22+ "bridges": "hashiwokakero",23+ "lights": "lights out",24+ "nonogram": "nonogram",25+ "sudoku": "sudoku",26+ "words": "word search",27+ "wordsearch": "word search",28+ "ws": "word search",2829 }2930 3031 // resolveCategory finds a game category by name (case-insensitive,@@ -46,7 +46,7 @@ func (w WordSearchMode) Spawn() (game.Gamer, error) {
4646 }4747 4848 var Modes = []list.Item{49- NewMode("Easy - 10x10", "Find 6 words in a 10x10 grid.", 10, 10, 6, 3, 5, []Direction{Right, Down, DownRight}),50- NewMode("Medium - 15x15", "Find 10 words in a 15x15 grid.", 15, 15, 10, 4, 7, []Direction{Right, Down, DownRight, DownLeft, Left, Up}),51- NewMode("Hard - 20x20", "Find 15 words in a 20x20 grid.", 20, 20, 15, 5, 10, []Direction{Right, Down, DownRight, DownLeft, Left, Up, UpRight, UpLeft}),49+ NewMode("Easy 10x10", "Find 6 words in a 10x10 grid.", 10, 10, 6, 3, 5, []Direction{Right, Down, DownRight}),50+ NewMode("Medium 15x15", "Find 10 words in a 15x15 grid.", 15, 15, 10, 4, 7, []Direction{Right, Down, DownRight, DownLeft, Left, Up}),51+ NewMode("Hard 20x20", "Find 15 words in a 20x20 grid.", 20, 20, 15, 5, 10, []Direction{Right, Down, DownRight, DownLeft, Left, Up, UpRight, UpLeft}),5252 }@@ -37,7 +37,7 @@ The puzzle is solved when all words are found.
3737 ## Quick Start3838 3939 ```bash40-puzzletea new wordsearch easy-10x1041-puzzletea new wordsearch medium-15x1542-puzzletea new wordsearch hard-20x2040+puzzletea new word-search easy-10x1041+puzzletea new word-search medium-15x1542+puzzletea new word-search hard-20x204343 ```