Skip to content
/ 2048 Public

A terminal-based implementation of the classic 2048 game, written in Rust!

License

Notifications You must be signed in to change notification settings

wrux/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

๐ŸŽฎ 2048

A beautiful terminal-based implementation of the classic 2048 game, written in Rust! ๐Ÿฆ€

Game Screenshot

โœจ Features

  • ๐ŸŽจ Beautiful color-coded tiles matching the original 2048 game
  • ๐Ÿ“Š Real-time score tracking
  • โŒจ๏ธ Arrow key controls
  • ๐ŸŽฏ Classic 2048 gameplay mechanics

๐Ÿš€ Installation

Prerequisites

Make sure you have Rust installed on your system.

Build from Source

# Clone the repository
git clone https://github.com/yourusername/2048.git
cd 2048

# Build the project
cargo build --release

# Run the game
cargo run --release

Or simply:

cargo run

๐ŸŽฎ How to Play

  • Arrow Keys - Move tiles in the corresponding direction
  • R - Restart the game
  • Q or Esc - Quit the game

Goal

Combine tiles with the same number to reach the 2048 tile! ๐ŸŽฏ

๐Ÿ› ๏ธ Technology Stack

  • Rust - Systems programming language
  • crossterm - Cross-platform terminal manipulation
  • rand - Random number generation

๐Ÿ“ License

This project is licensed under the Apache License, Version 2.0.

You are free to use, modify, distribute, and even sell this code for any purpose, commercial or non-commercial. The only requirement is that you include the Apache 2.0 license and copyright notice when redistributing. ๐ŸŽ‰

๐Ÿค Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

๐Ÿ™ Acknowledgments


Made with โค๏ธ and Rust ๐Ÿฆ€

About

A terminal-based implementation of the classic 2048 game, written in Rust!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors