The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'\t2'}) and 1 missing columns ({'\t0.2'}).
This happened while the csv dataset builder was generating data using
zip://data/games_1570/20250626_131339.csv::/tmp/hf-datasets-cache/medium/datasets/92890954544815-config-parquet-and-info-DeeperGame-game-2048-6e276f56/hub/datasets--DeeperGame--game-2048/snapshots/8a4282c40c1c9d437bb8982b740a734bee8bb38f/data.zip
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
0: int64
0: int64
0.1: string
2: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 681
to
{'0': Value(dtype='int64', id=None), '\t0': Value(dtype='int64', id=None), '\t0.1': Value(dtype='string', id=None), '\t0.2': Value(dtype='string', id=None)}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1436, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1053, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'\t2'}) and 1 missing columns ({'\t0.2'}).
This happened while the csv dataset builder was generating data using
zip://data/games_1570/20250626_131339.csv::/tmp/hf-datasets-cache/medium/datasets/92890954544815-config-parquet-and-info-DeeperGame-game-2048-6e276f56/hub/datasets--DeeperGame--game-2048/snapshots/8a4282c40c1c9d437bb8982b740a734bee8bb38f/data.zip
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
0 int64 | 0 int64 | 0.1 string | 0.2 string |
|---|---|---|---|
2 | 0 | 0 | 0 |
2 | 0 | 0 | 0 |
0 | 0 | 0 | 0 |
1 | 0 | right | β |
0 | 0 | 0 | 0 |
0 | 0 | 0 | 2 |
2 | 0 | 0 | 2 |
0 | 0 | 0 | 0 |
2 | 0 | left | β |
0 | 0 | 0 | 0 |
2 | 0 | 0 | 0 |
4 | 2 | 0 | 0 |
0 | 0 | 0 | 0 |
3 | 4 | down | β |
0 | 2 | 0 | 0 |
0 | 0 | 0 | 0 |
2 | 0 | 0 | 0 |
4 | 2 | 0 | 0 |
4 | 4 | right | β |
0 | 0 | 0 | 2 |
0 | 0 | 0 | 0 |
0 | 2 | 0 | 2 |
0 | 0 | 4 | 2 |
5 | 4 | right | β |
0 | 0 | 2 | 2 |
0 | 0 | 0 | 0 |
0 | 0 | 0 | 4 |
0 | 0 | 4 | 2 |
6 | 8 | down | β |
0 | 0 | 0 | 0 |
0 | 2 | 0 | 2 |
0 | 0 | 2 | 4 |
0 | 0 | 4 | 2 |
7 | 8 | left | β |
0 | 0 | 0 | 0 |
4 | 0 | 2 | 0 |
2 | 4 | 0 | 0 |
4 | 2 | 0 | 0 |
8 | 12 | down | β |
2 | 0 | 0 | 0 |
4 | 0 | 0 | 0 |
2 | 4 | 0 | 0 |
4 | 2 | 2 | 0 |
9 | 12 | up | β |
2 | 4 | 2 | 0 |
4 | 2 | 0 | 0 |
2 | 0 | 0 | 2 |
4 | 0 | 0 | 0 |
10 | 12 | down | β |
2 | 2 | 0 | 0 |
4 | 0 | 0 | 0 |
2 | 4 | 0 | 0 |
4 | 2 | 2 | 2 |
11 | 12 | up | β |
2 | 2 | 2 | 2 |
4 | 4 | 2 | 0 |
2 | 2 | 0 | 0 |
4 | 0 | 0 | 0 |
12 | 12 | up | β |
2 | 2 | 4 | 2 |
4 | 4 | 0 | 0 |
2 | 2 | 0 | 4 |
4 | 0 | 0 | 0 |
13 | 16 | up | β |
2 | 2 | 4 | 2 |
4 | 4 | 0 | 4 |
2 | 2 | 0 | 2 |
4 | 0 | 0 | 0 |
14 | 16 | down | β |
2 | 2 | 0 | 0 |
4 | 2 | 0 | 2 |
2 | 4 | 0 | 4 |
4 | 2 | 4 | 2 |
15 | 16 | right | β |
0 | 0 | 0 | 4 |
0 | 0 | 4 | 4 |
0 | 2 | 2 | 8 |
4 | 2 | 4 | 2 |
16 | 32 | up | β |
4 | 4 | 4 | 8 |
0 | 4 | 2 | 8 |
0 | 0 | 4 | 2 |
0 | 0 | 0 | 0 |
17 | 44 | right | β |
0 | 4 | 8 | 8 |
0 | 4 | 2 | 8 |
0 | 0 | 4 | 2 |
2 | 0 | 0 | 0 |
18 | 52 | right | β |
0 | 0 | 4 | 16 |
0 | 4 | 2 | 8 |
0 | 0 | 4 | 2 |
2 | 0 | 0 | 2 |
19 | 68 | up | β |
2 | 4 | 4 | 16 |
0 | 0 | 2 | 8 |
0 | 0 | 4 | 4 |
0 | 0 | 0 | 2 |
20 | 72 | down | β |
2 | 0 | 0 | 16 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
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. 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 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
- π¬ Based on nneonneo/2048-ai (used for baseline agents)
- π§ No neural nets used in generation β this dataset is ready to train one
- Downloads last month
- 23