Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yoch/2048-ai
- Owner: yoch
- License: gpl-3.0
- Created: 2016-02-24T12:37:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T19:52:16.000Z (over 3 years ago)
- Last Synced: 2024-11-05T23:11:53.624Z (about 2 months ago)
- Topics: ai, bitboards, game-2048, monte-carlo
- Language: C++
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.)