| Crates.io | reptil-en-peligro |
| lib.rs | reptil-en-peligro |
| version | 1.0.1 |
| created_at | 2025-08-14 14:48:20.639216+00 |
| updated_at | 2025-08-14 16:12:09.840458+00 |
| description | A terminal-based Snake game in Rust using ratatui/crossterm with a stylish banner, square fruits, and smooth gameplay. |
| homepage | https://github.com/aguacero7/reptil-en-peligro |
| repository | https://github.com/aguacero7/reptil-en-peligro |
| max_upload_size | |
| id | 1794947 |
| size | 38,748 |
Reptil en Peligro is a terminal-based Snake game built in Rust using ratatui for the TUI (Terminal User Interface) and crossterm for terminal input/output handling.
The size of the board depends on the size of your terminal's window.
ratatuiq / Esc to quitgit clone https://github.com/aguacero7/rep
cd reptil-en-peligro
cargo run
cargo installcargo install reptil-en-peligro
Then run:
rep
| Key | Action |
|---|---|
| ↑ | Move up |
| ↓ | Move down |
| ← | Move left |
| → | Move right |
q |
Quit |
Esc |
Quit |
src/
├── main.rs # Entry point
├── ui.rs # Board and interface rendering
├── game.rs # Game logic
├── event.rs # Keyboard input and tick handling
License: MIT