From 650d06167da8652f82e6efd8c821fe551363bee5 Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Sun, 5 Nov 2023 23:29:00 +0100 Subject: [PATCH] Simple design document to give myself direction. --- design.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 design.md 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