CLI Snake in a functional style.
Try to eat as many apples as possible without dying. You die by either colliding with the walls or yourself.
wasd
hjkl
or the arrow keys.
npm install -g play-snake
Run snake
followed by arguments.
- Size (min: 3) [Integer]
It will create a square board with the provided dimensions.
snake <size>
or :
- Width (min: 3) [Integer]
- Height (min: 3) [Integer]
It will create a board with the provided dimensions.
snake <width> <height>
-b
Play a black and white version of the game
-h
Help
-i
Game instruction