- Install NodeJS to your computer.
- Download this repo on / Clone this repo to your computer and put the folder anywhere you want.
- Open your terminal.
- Navigate to the folder using
cd PATH
. - Type
npm install
and press enter. - Now you can type
node snake.js
and press enter. - When you want to close the game you have to close your whole terminal.
You can navigate using the arrow keys on your keyoard. The snake's body is simbolized by #. Food is too. When you touch the food with the front of the snake you will eat it. When your front touches the border or the rest of your body you die.
- Huge thanks to RMC (RMC#0001 on Discord) for making the logo.
- ASCII Art Generator
- I used keypress to know when a key was pressed.
- I used clear-it to clear the terminal.