diff --git a/design.md b/design.md new file mode 100644 index 0000000..1708318 --- /dev/null +++ b/design.md @@ -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. \ No newline at end of file