Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.04 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.04 KB

2048 AI Game Enhancement

This repository hosts an advanced version of the 2048 game, incorporating various AI algorithms to optimize gameplay and strategy.

Features

  • AI Strategies: Implementation of different AI strategies based on metrics like smoothness, monotonicity, and tile placement.
  • Evaluation Metrics:
    • smoothness: Measures how smoothly the numbers progress in adjacent tiles.
    • monotonicity: Ensures numbers are monotonically increasing or decreasing in rows and columns.
    • emptyCellNum: Counts the number of empty cells.
    • isBigTileInCorner: Checks if the largest tile is strategically placed in a corner.
    • biggerTilesOnBoarderPreference: Prefers larger tiles on the board's edges.
  • Input Modes:
    • Automatic tile placement by the computer.
    • Manual control for inserting a 2 or 4.

How to Run

Clone this repo and follow the instructions provided to run the game on your local machine.

Contributions

Feel free to contribute to the project! Suggestions, issues, and feature requests are all welcome.