2048 cli
A small clone of 2048. In it, the player moves numbered blocks in a 4x4 grid, combining them to create a block with the number 2048. The challenge lies in the strategy to avoid running out of moves possible. The game ends when the grid is full and there are no more combinations available
In this project, I also try to develop an A.I. using the Monte Carlo method to try to achieve the best possible score.
Installation
Install with pip or your favorite PyPI package manager
$ pipx install 2048-cli
Then run the following command in the terminal
$ 2048-cli
Modes
Single Player
In single player mode, you command the moves with the aim of achieving the highest possible score.
AI Playing
In AI game mode, moves will be generated using a Monte Carlo search algorithm.
Release files for 2048-cli 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| 2048_cli-1.0.3.tar.gz | 59.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 2048_cli-1.0.3-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 289.2 kB
Release files / 2048_cli-1.0.3.tar.gz
| Download URL | 2048_cli-1.0.3.tar.gz |
|---|---|
| Size | 59.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4092173068c38de038edc96652c473f93cef94c9f44ee53635f6c9c2a5f3816a
|
|
BLAKE2b-256 checksum How to use checksums |
6078bbb5337dbd9dfb58ba699ebecee6105556a66343ad7d6e200610de64f8ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.6.0
|
Release files / 2048_cli-1.0.3-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | 2048_cli-1.0.3-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 229.8 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
c14cb9895b0a7f7d9382fcf446b41fb3bd7ddf701ae7b88ef2b141fd149d8e24
|
|
BLAKE2b-256 checksum How to use checksums |
4ce2bf5d1b066d0d17e9e2c3aedad2de7d1ceff94e37ad6f549334f9ab8088b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.6.0
|