First project after 2.5 months of learning Python
Game 2048 written in Python, pygame module. Also used SQLite for the database of players and their results.
Clone the repository and run the file run.py
.
The Python
interpreter version 3.11+ and
preferably poetry
Install requirements with poetry
:
poetry install
Clone this repository and navigate to it with the command:
git clone https://github.com/Qu1nel/2048.git
cd 2048/
If you have the make
and poetry
installed, you can run the game with the command:
make run
Or
poetry run python run.py
Or you can simply run run.py
using the python interpreter
python run.py
python3 run.py
Key | Move |
---|---|
H / h | Returns to the main menu, saving game progress |
R / r | Resets the game to a further agreement |
B / b | Returns the state of the game that was 1 turn ago |
Key | Move |
---|---|
Backspace | Cancels the action |
Escape | Leaves the game or cancels the action |
Enter | Confirms action |
Mouse swipes are also available within the game area.
For full help with make commands, you can use the command:
make help
This Project Qu1nel.2048 in distributive under the MIT License, and it also uses those codes that are distributed under the MIT License.