Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wenxuanjun/2048
Some AI that that play 2048!
https://github.com/wenxuanjun/2048
2048 traditional-ai
Last synced: 3 months ago
JSON representation
Some AI that that play 2048!
- Host: GitHub
- URL: https://github.com/wenxuanjun/2048
- Owner: wenxuanjun
- License: mit
- Created: 2023-05-23T17:38:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-26T14:40:51.000Z (4 months ago)
- Last Synced: 2024-07-26T16:27:46.401Z (3 months ago)
- Topics: 2048, traditional-ai
- Language: V
- Homepage:
- Size: 54.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-v - 2048 - A 2048 game with several types of traditional AI integrated. (Applications / Games)
README
# 2048
Install [`V`](https://github.com/vlang/v) and [`just`](https://github.com/casey/just), then use `just -l` to list available recipes.
Add `-h` to those recipes that have optional flags to see full options of the game.
```bash
just run -h
```You can create production build to gain the performance optimized executable.
```bash
just build
```Use `-A` to select the AI algorithm:
```bash
just run -A dfs
```There are various kinds of AI you can choose:
- dfs
- heuristic
- minmax
- expectimax
- monte
- reinforcementThe default algorithm is `dfs`.