play-snake
v1.0.4
Published
CLI Snake in a functional style
Maintainers
Readme
snake
CLI Snake in a functional style.
Instructions
Try to eat as many apples as possible without dying. You die by either colliding with the walls or yourself.
Controls
wasd hjkl or the arrow keys.
How to use
Install
npm install -g play-snakePlay
Run snake followed by arguments.
Size (min: 3) [Integer]
snake <size>or :
- Number of columns (min: 3) [Integer]
- Number of rows (min: 3) [Integer]
snake <cols> <rows>Options:
-b Play a black and white version of the game-h Help-i Game instruction
