Simple design document to give myself direction.
This commit is contained in:
parent
a2077ff2a8
commit
650d06167d
45
design.md
Normal file
45
design.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Snake
|
||||||
|
( Doing it my way. )
|
||||||
|
|
||||||
|
# The game
|
||||||
|
This follows the usual setting:
|
||||||
|
* Field
|
||||||
|
* Snake that cannot hurt itself
|
||||||
|
* Snake that gets wounded by the edges
|
||||||
|
* Score
|
||||||
|
|
||||||
|
The game should look something like this:
|
||||||
|
```
|
||||||
|
╔══════════════════════════════════════════════════════════════════════════════╗
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ │ ║
|
||||||
|
║ │ ║
|
||||||
|
║ └───────o ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ 🍏 ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
║ ║
|
||||||
|
╚════[ Score: 12309 ]══════════════════════════════════════════════════════════╝
|
||||||
|
```
|
||||||
|
|
||||||
|
The minimum and maximum resolution of this game is `80` columes and `24` rows, Anything console larger will have no issues with this setup, anything smaller should pause the game with a message to resize.
|
||||||
|
|
||||||
|
Scoring is done by having a counter _n_, every time an object is eaten, this counter is added to the score and raised by one. So after four apples the score would be (1+2+3+4) 10.
|
||||||
|
|
||||||
|
The objects to eat are a series of emojis Snakes would eat IRL in nature. This is anything from fruits, nuts, frogs, etc.
|
||||||
|
|
||||||
|
Snake cannot eat itself, nor eat the border.
|
Loading…
x
Reference in New Issue
Block a user