|
Download README.md from DeeperGame/game-2048: direct link, hf CLI and curl.
- Browser
- Download file 3.72 kB
-
https://huggingface.co/datasets/DeeperGame/game-2048/resolve/main/README.md
- Command line
-
hf download hf://datasets/DeeperGame/game-2048/README.md
-
curl -L -o README.md https://huggingface.co/datasets/DeeperGame/game-2048/resolve/main/README.md
3.72 kB
| ```yaml | |
| license: mit | |
| task_categories: | |
| - zero-shot-classification | |
| language: | |
| - en | |
| pretty_name: Game 2048 Board-Move Pairs | |
| size_categories: | |
| - 100M<n<1B | |
| ``` | |
| # π§ Game 2048 Board-Move Pairs Dataset | |
| A high-quality dataset of **25M+ board-move pairs** collected from **1,570 full games** of the classic puzzle game [**2048**](https://en.wikipedia.org/wiki/2048_%28video_game%29). This dataset was designed for training and evaluating AI agents, particularly in supervised or imitation learning scenarios. | |
| The board states were generated using **search-based AI agents** (not neural networks), leveraging heuristics and expectimax-style algorithms. To reach top scores, the collection process also involved **manual strategy switching** and **UNDO-based corrections**. | |
| --- | |
| ## π Dataset Overview | |
| | Item | Value | | |
| | ---------------------- | -------------------------------------------- | | |
| | Total Games | 1,570 | | |
| | Total Board-Move Pairs | 25,153,774 | | |
| | Highest Score Recorded | 3,766,860 | | |
| | Avg Moves per Game | \~16,022 | | |
| | Collection Time | \~1 Week | | |
| | Devices Used | 2Γ M1 MacBook Air<br>1Γ Intel i5 MacBook Air | | |
| > β οΈ *The final board in each game contains no move β only a board snapshot with `_` as placeholder.* | |
| --- | |
| ## π Game Statistics (1570 Files) | |
| | Metric | Steps (Moves) | Score | | |
| | ------ | ------------- | ---------- | | |
| | Min | 1,587 | 31,260 | | |
| | Max | 29,774 | 839,912 | | |
| | Mean | 16,022.51 | 432,174.94 | | |
| | Median | 14,875 | 387,152 | | |
| | StdDev | 5,529.86 | 169,184.62 | | |
| --- | |
| ## π§Ύ File Format (Standard Games) | |
| Each game is stored as a standalone `.csv`-like file, readable by both humans and programs. Format per move: | |
| ``` | |
| # 4Γ4 Board (4 rows) | |
| 0, 0, 0, 0 | |
| 0, 0, 0, 0 | |
| 0, 2, 0, 0 | |
| 0, 0, 4, 0 | |
| # Metadata | |
| 1, 0, up, β | |
| ``` | |
| * 4 rows = board state | |
| * 5th row = `step_index, cumulative_score, move_name, arrow` | |
| * Final row uses `_` and no move: | |
| `14943, 387388, _, _` | |
| --- | |
| ## π High Score Records (`/records` Folder) | |
| Games with scores exceeding **3 million** are included as flattened vectors: | |
| ``` | |
| 25508, 32, 32, 4, 2, 512, 256, 2, 0, 16384, 2048, 0, 0, 32768, 4096, 0, 2, up, 733188 | |
| ``` | |
| * Format: | |
| `step_index, board[0..15], move, score` | |
| * One row per move | |
| * Split into files of 100 moves each | |
| * Final score row example: | |
| `114499, ..., down, 3766860` | |
| These records include: | |
| * UNDO usage for recovery | |
| * Strategy switching between agents | |
| * Some human-curated decision making | |
| --- | |
| ## π‘ Use Cases | |
| | Task | Application | | |
| | ------------------------------ | ------------------------------------------------------- | | |
| | Supervised Learning | Train a model to choose the best move for a given board | | |
| | Offline Reinforcement Learning | Imitation learning from expert trajectories | | |
| | AI Benchmarking | Compare heuristic vs ML agents | | |
| | Data Compression Research | Encode 2048 boards efficiently | | |
| | Curriculum Learning | Study learning from low to high score trajectories | | |
| --- | |
| ## π Resources | |
| * π **GitHub Repository**: [DeeperGame/2048AI](https://github.com/DeeperGame/2048AI) | |
| * π¬ Based on [nneonneo/2048-ai](https://github.com/nneonneo/2048-ai) (used for baseline agents) | |
| * π§ No neural nets used in generation β this dataset is ready to train one | |