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.

Changelog #

1.0.2 #

✨ Improvements & Fixes

  • Added full-width dynamic playfield based on terminal size
  • Introduced bordered game area UI (top, bottom, left, right)
  • Fixed bug where game ended immediately at start
  • Added safe food spawning logic (never spawns on head/border)
  • Improved direction change logic to prevent reverse movement
  • Added "How to Play" start screen before the game begins
  • Gameplay now starts only after pressing ENTER
  • Clean screen rendering and UI improvements
  • Code cleanup and better variable naming

New Features #

  • Dynamic terminal size detection
  • Full-screen snake arena
  • Visible border box for snake game
  • Arrow keys and WASD both supported

Stability Updates #

  • Removed flickering at render
  • Optimized render loop
  • Better keyboard handling

1.0.1 #

    • Added instructions popup
  • Improved movement reliability
  • Minor fixes

1.0.0 #

  • This is the first stable published version
  • Works across Linux, macOS, and Windows
  • Smooth movement and gameplay

🆕 Initial release of Snake CLI 🐍

Features #

  • Play Snake directly in the terminal
  • Smooth movement and gameplay
  • Supports both WASD and Arrow keys for control
  • Emoji-based UI rendering
  • Works across Linux, macOS, and Windows
  • Clean and lightweight standalone implementation

Notes #

  • This is the first stable published version
  • No dependencies required
  • Designed for developers, CLI users, and terminal lovers
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