← 全部工具

2048-cli

热度 70 更新于 网络与系统管理

A small clone of 2048 for terminal, and also the implementation of an A.I. for it

pypiauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

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.

<div align="center"

</div

AI Playing

In AI game mode, moves will be generated using a Monte Carlo search algorithm.

<div align="center"

</div