Skip to content

Rust based Terminal 2048 Game - puzzle game with multiple difficulty levels and TUI interface

Notifications You must be signed in to change notification settings

0xTijan/terminal-2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal 2048 Game

A terminal-based implementation of the popular 2048 game, written in Rust! Play on different grid sizes, combine tiles with the same number, and aim for the highest score.


🎮 Features

  • Terminal-based UI using the ratatui library
  • Intuitive keyboard controls for smooth gameplay
  • Save & load highest score to track your progress
  • Multiple difficulty levels:
    • 🟢 Easy (4x4 grid)
    • 🔵 Medium (5x5 grid)
    • 🔴 Hard (6x6 grid)
  • Game states:
    • 🕹️ Playing
    • 💀 Game Over
    • ⚙️ Settings

🖼 Gallery

Game Screenshot


🎯 Controls

Key Action
⬆️ ⬇️ ⬅️ ➡️ Move tiles
Q Quit the game
N Start a new game
S Open settings
+ Increase difficulty (bigger grid)
- Decrease difficulty (smaller grid)

🏗 Code Structure

📂 Project Layout


🛠 Installation & Usage

  1. Clone the repository:
    git clone https://github.com/yourusername/terminal-2048.git
    cd terminal-2048
  2. Run the project using Cargo:
    cargo run

🙌 Acknowledgements

Special thanks to these amazing libraries:


🎲 Enjoy playing Terminal 2048! 🚀

Please star ⭐ this repo, if you like it.

Feel free to contact me tijan@tijan.dev. Or visit my website.

About

Rust based Terminal 2048 Game - puzzle game with multiple difficulty levels and TUI interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages