Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

2048-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

2048-cli

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

  • 1.0.3
  • PyPI
  • Socket score

Maintainers
1

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.

menu

AI Playing

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

montecarlo

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc