Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
/ 2048 Public archive

Game 2048 written in Python, pygame module. First pet-project. cringe...

License

Notifications You must be signed in to change notification settings

Qu1nel/2048

Repository files navigation

logo

2048

Game 2048 written in Python, pygame module. First pet-project. cringe...

contributors last update forks stars open issues

python Version project version license linting


Contents

About 2048

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.

Screenshots

Installation

Clone the repository and run the file run.py.

Requirements

The Python interpreter version 3.11+ and preferably poetry

Install requirements with poetry:

poetry install

Getting started

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

Windows

python run.py

Linux

python3 run.py

Documentation

Controls & Keys

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

Other Keys

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

Developers

License

MIT © Ivan Kovach

This Project Qu1nel.2048 in distributive under the MIT License, and it also uses those codes that are distributed under the MIT License.

About

Game 2048 written in Python, pygame module. First pet-project. cringe...

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages