Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yoch/2048-ai

AI for 2048 game
https://github.com/yoch/2048-ai

ai bitboards game-2048 monte-carlo

Last synced: 10 days ago
JSON representation

AI for 2048 game

Awesome Lists containing this project

README

        

# 2048-AI

AI for 2048 game.

Based on a fast bitboard, it can make around 10.000.000 moves per second on my CPU (Intel i3 M370 2.4 GHz).

The AI algorithm is very simple and inspired by the [Monte-Carlo approach](https://en.wikipedia.org/wiki/Monte_Carlo_tree_search#Pure_Monte_Carlo_game_search).

### Compiling

A makefile is provided to compile the demo. It require gcc or clang (which is better).

Also, please note that compiling in 64 bits is recommended.

### Usage

To run the demo :

`./2048 [nruns]`

(`nruns` is the number of playouts per move, by default `nruns` is set to 500.)