Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sheep-and-crocodile

0.9.8 • Public • Published

sheep-and-crocodile

NPM version

Console game for nodejs about a sheep that runs away from a crocodile.

sheep-and-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.

Install

You can install it by npm:

npm install -g sheep-and-crocodile

Game start

To start a game execute this in command line:

sheep_and_crocodile

or just:

sheepcroc

Params

--help

Prints rules and controls info.

--difficulty

You can choose difficulty by using this parameter (from 1 to 3):

sheep_and_crocodile --difficulty=1

By default difficulty is 1. The more value the harder to play (alias for 3 is 'nightmare').

--water

If you don't want water you can disable it this way:

sheep_and_crocodile --water=0

or just:

sheep_and_crocodile --no-water

--emoji

If you don't want emoji graphics you can disable it this way:

sheep_and_crocodile --emoji=0

or just:

sheep_and_crocodile --no-emoji

And you will see something like this:

sheep-and-crocodile simple graphics

Where:

  • \X< - crocodile;
  • @> - sheep;
  • ~% - clover;
  • vV - grass;
  • ~~ - water.

Install

npm i sheep-and-crocodile

DownloadsWeekly Downloads

5

Version

0.9.8

License

MIT

Unpacked Size

11.3 kB

Total Files

4

Last publish

Collaborators

  • avatar