Skip to content

aguacero7/reptil-en-peligro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reptil en Peligro

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.

image ---

Features

  • Responsive TUI rendering with ratatui
  • Smooth snake movement
  • Fruits displayed as square blocks for consistent visuals
  • Stylish top banner displaying:
    • Game title
    • Current score
    • Elapsed time
  • Dynamic board resizing based on terminal size
  • Collision detection (walls, snake body)
  • Arrow key controls + q / Esc to quit

Requirements

  • Rust and Cargo installed (Install Rust)
  • ANSI-compatible terminal

Installation

From source

git clone https://github.com/aguacero7/rep
cd reptil-en-peligro
cargo run

Global installation via cargo install

cargo install reptil-en-peligro

Then run:

rep

Controls

Key Action
Move up
Move down
Move left
Move right
q Quit
Esc Quit

Project Structure

src/
├── main.rs      # Entry point
├── ui.rs        # Board and interface rendering
├── game.rs      # Game logic
├── event.rs     # Keyboard input and tick handling

License: MIT

About

Reptil En Peligro: Todo Instinto Letal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages