-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add new puzzle game: nonogram * feat: add new puzzle game: snake * docs: add game config examples
- Loading branch information
Showing
7 changed files
with
565 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Game config examples | ||
|
||
## Snake | ||
|
||
**game_config example** | ||
|
||
* game: snake | ||
* speed: how fast the snake is (bigger the number slower the snake) | ||
* targetSnakeLength: how many 'apples' snake needs to eat | ||
|
||
```json | ||
{ | ||
"default": { | ||
"game": "snake", | ||
"speed": 8, | ||
"targetSnakeLength": 16, | ||
"endDescription": "All shield segments fixed!", | ||
"initDescription": "<p>Front shield generator shield segments are dirty.</p>\n\t\t<p>Clean up all faulty segments by collecting (red) 'apples' with the remote-controlled snake cleaner. After enough dirt has been cleaned the system will become operational.</p>" | ||
}, | ||
"skill:master": { | ||
"game": "snake", | ||
"speed": 12, | ||
"targetSnakeLength": 12, | ||
"endDescription": "All shield segments fixed!", | ||
"initDescription": "<p>Front shield generator shield segments are dirty.</p>\n\t\t<p>Clean up all faulty segments by collecting (red) 'apples' with the remote-controlled snake cleaner. After enough dirt has been cleaned the system will become operational.</p>" | ||
}, | ||
"skill:expert": { | ||
"game": "snake", | ||
"speed": 16, | ||
"targetSnakeLength": 8, | ||
"endDescription": "All shield segments fixed!", | ||
"initDescription": "<p>Front shield generator shield segments are dirty.</p>\n\t\t<p>Clean up all faulty segments by collecting (red) 'apples' with the remote-controlled snake cleaner. After enough dirt has been cleaned the system will become operational.</p>" | ||
} | ||
} | ||
``` | ||
|
||
## Nonogram | ||
|
||
**game_config example** | ||
|
||
* game: nonogram | ||
* gridWidth: grid width | ||
* gridHeight: grid height | ||
* maxStrikes: how many faulty segments are accepted before they need to redo the task | ||
|
||
```json | ||
{ | ||
"default": { | ||
"game": "nonogram", | ||
"gridWidth": 5, | ||
"gridHeight": 7, | ||
"maxStrikes": 3, | ||
"endDescription": "All shield segments fixed!", | ||
"initDescription": "<p>Front shield generator shield segments are faulted.</p>\n\t\t<p>You need to find all faulty segments so that EVA can recalibrate using functional segments. Try to avoid faulty ones. When all functional segments are found the recalibration can begin. Each number on the lines outside the grid represents a block of squares to be blacked out in that row or column</p>\n\t\t<p>You may reset the shield segments to a random state.</p>" | ||
}, | ||
"skill:master": { | ||
"game": "nonogram", | ||
"gridWidth": 5, | ||
"gridHeight": 5, | ||
"maxStrikes": 3, | ||
"endDescription": "All shield segments fixed!", | ||
"initDescription": "<p>Front shield generator shield segments are faulted.</p>\n\t\t<p>You need to find all faulty segments so that EVA can recalibrate using functional segments. Try to avoid faulty ones. When all functional segments are found the recalibration can begin. Each number on the lines outside the grid represents a block of squares to be blacked out in that row or column</p>\n\t\t<p>You may reset the shield segments to a random state.</p>" | ||
}, | ||
"skill:expert": { | ||
"game": "nonogram", | ||
"gridWidth": 4, | ||
"gridHeight": 4, | ||
"maxStrikes": 3, | ||
"endDescription": "All shield segments fixed!", | ||
"initDescription": "<p>Front shield generator shield segments are faulted.</p>\n\t\t<p>You need to find all faulty segments so that EVA can recalibrate using functional segments. Try to avoid faulty ones. When all functional segments are found the recalibration can begin. Each number on the lines outside the grid represents a block of squares to be blacked out in that row or column</p>\n\t\t<p>You may reset the shield segments to a random state.</p>" | ||
} | ||
} | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.