Skip to main content

snake_cli 1.0.2 copy "snake_cli: ^1.0.2" to clipboard
snake_cli: ^1.0.2 copied to clipboard

A Snake game you can play in the terminal (CLI). Supports WASD and arrow keys.

=========================================== ๐Ÿ SNAKE CLI โ€“ HOW TO PLAY #

Welcome to the Snake CLI Game! ๐ŸŽฎ
Play Snake directly in your terminal using only your keyboard.


โš™๏ธ 1. INSTALLATION #

First install this package globally:

dart pub global activate snake_cli

After installation, run:

snake

Done! ๐ŸŽ‰ The game will start immediately.


โ–ถ๏ธ 2. STARTING THE GAME #

Just type:

snake

You will see the game board and the snake head ๐Ÿ˜ˆ.


๐Ÿ•น๏ธ 3. GAME CONTROLS #

Control your snake using:

W or โ†‘  move UP
S or โ†“  move DOWN
A or โ†  move LEFT
D or โ†’  move RIGHT

๐ŸŽ 4. GAME RULES #

โœ” Eat the apples (๐ŸŽ) to grow
โœ” Avoid hitting:

  • walls
  • your own body โœ” If you hit something โ†’ โŒ GAME OVER

๐ŸŽฏ 5. OBJECTIVE #

Grow the snake as long as possible ๐Ÿ
Your score = snake length - 1


๐Ÿ“Œ 6. EXIT THE GAME #

Press:

Ctrl + C

Anytime to quit the game โ—


๐Ÿ’ก TIPS #

โœจ Use small movements
โœจ Donโ€™t trap yourself in corners
โœจ Plan 2 moves ahead


๐Ÿ”ฅ 7. TERMINAL REQUIREMENTS #

Works on: โœ” Linux โœ” macOS โœ” Windows Terminal


๐ŸŽ BONUS FEATURES #

โœ” Arrow keys supported
โœ” WASD supported
โœ” Fast gameplay
โœ” Smooth controls


๐Ÿง‘โ€๐Ÿ’ป EXAMPLE SESSION #

Run:

snake

Move around and eat apples:

๐Ÿ˜ˆ ๐ŸŸฉ ๐ŸŸฉ ๐ŸŸฉ ๐ŸŽ

Score increases automatically.


โค๏ธ HAVE FUN! #

If you enjoy this game, share it or update it: GitHub: Name : Prajapati Nikul

LET THE GAME BEGIN !!! ๐Ÿ #

0
likes
130
points
12
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Snake game you can play in the terminal (CLI). Supports WASD and arrow keys.

Homepage

License

MIT (license)

Dependencies

path

More

Packages that depend on snake_cli