Console game for nodejs about a sheep that runs away from a crocodile.
Controls and rules
Use arrows or WSAD buttons to control a sheep (🐑).
Your goal is eat as much clovers (🍀) as you can.
Sheep eats clovers, crocodile (🐊) eats sheep. The crocodile will pursue the sheep until it is eaten by it.
By the way there are some random water on the map. A crocodile can swim, but a sheep does not.
You can exit game by Q button.
You can install it by npm:
npm install -g sheep-and-crocodile
To start a game execute this in command line:
Prints rules and controls info.
You can choose difficulty by using this parameter (from 1 to 3):
By default difficulty is 1. The more value the harder to play (alias for 3 is 'nightmare').
If you don't want water you can disable it this way:
If you don't want emoji graphics you can disable it this way:
And you will see something like this:
- \X< - crocodile;
- @> - sheep;
- ~% - clover;
- vV - grass;
- ~~ - water.