UNPKG

play-snake

Version:

CLI Snake in a functional style

35 lines (28 loc) 598 B
# 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 ```bash npm install -g play-snake ``` ### Play Run `snake` followed by arguments. Size (min: 3) [Integer] ```bash snake <size> ``` or : 1. Number of columns (min: 3) [Integer] 2. Number of rows (min: 3) [Integer] ```bash snake <cols> <rows> ``` #### Options: `-b` Play a black and white version of the game `-h` Help `-i` Game instruction