Our goal is to create a working snake game, by finishing Snake.ts & Grid.ts alongside with the tests.
As always, open this folder in the Visual Studio Code and download all the dependencies by executing npm install
Open terminal and execute command: npm test
To launch game open terminal and execute command: npm start, there will url, most likely http://localhost:1234 so just open that in your browser.
- snake can move
- snake grows by three cells when apple is ate
- on each level there are apples placed in random positions on the field
- snake dies if it bumps into the wall or itself
- no keypress for move is missed