This is a Rust implementation of the 2048 game which runs in the terminal.
This game is designed to run on the following operating systems:
- Windows (7, 8, 10)
Open command prompt or windows powershell:
> git clone https://github.com/Anvarkangadiyil/2048-game.git
> cd 2048-game
> cargo build --release
> cargo run --release
- The game board will be displayed in the console, showing a 4x4 grid of numbered tiles.
- Use the arrow keys (up, down, left, right) or w,s,a,d to move the tiles in the corresponding direction.
- Tiles with the same number will merge when they collide, doubling their value.
- After each move, a new tile with a value of 2 or 4 will appear on the board.
- Your goal is to reach the 2048 tile by merging tiles. The game ends when you cannot make any more moves.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your forked repository.
- Submit a pull request to the master branch of the original repository.
- Please ensure that your code follows the existing code style and includes appropriate tests.
This project is licensed under the MIT License - see the LICENSE file for the details.