Powerful Two
It is a classic game popularly known as 2048. This game is a single player game where the player has to combine the tiles to get the number 2048. For combining the tiles, the player has to swipe the tiles in the four directions. The game is over when the player cannot combine the tiles anymore. For purpose of swiping, the players has to use the arrow keys on the keyboard. The game is developed using pygames
🔰 Description
Player has to slide the entire grid to the right, left, up or down. Sliding combines all same numbers into one. The numbers are power of two. When we combine two numbers, we get the sum of the two numbers. The game ends when the board is full.
Controls
- Left Arrow to Slide Left
- Right Arrow to Slide Right
- Up Arrow to Slide Up
- Down Arrow to Slide Down
🔌 Commands
Clone the repository using the following command.
git clone https://github.com/RohitSgh/Powerful-Two
The game is developed using pygame. To install the dependencies, run the following command.
pip install pygame
To run the game, run the following command in the terminal.
python main.py
Please note that instead of python you can use python3 or py depending on your system.
🔧 Development
The game is in development. Contributions are welcome. Feel free to open an issue or a pull request.
📓 Pre-Requisites
- Python 3.6 or above
pygameas mentioned in the commands section.
❗ Guideline
We follow the PEP8 style guide for Python.
Log in or sign up for Devpost to join the conversation.