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/61231070607114-config-parquet-and-info-DeeperGame-game-2048-7f1696aa/hub/datasets--DeeperGame--game-2048/snapshots/1831a512593b42dff20e16486e68648abf8805c5/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/61231070607114-config-parquet-and-info-DeeperGame-game-2048-7f1696aa/hub/datasets--DeeperGame--game-2048/snapshots/1831a512593b42dff20e16486e68648abf8805c5/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 |
Game 2048 Dataset
Total board-move pairs:
25,153,774 (excluding 1570 game over boards without any moves)
Total games:
1,570
Github Repo https://github.com/yuanoook/2048AI
Games 1570
Why I created this dataset?
I want to build neural network to play game 2048, for me to learn basic AI. Found out that it takes forever to get the data I wanted.
It takes 7 mins to 1 hour to generate/play 1 game, with mac m1 chip by the algo provided by nneonneo/2048-ai . The 1570 games takes more than 1 week, with 2 m1 mackbook air, and 1 intel i5 macbook air.
Highest record - 3,766,860
the /records folder contains the highest score (3,766,860) I've ever seen on the internet.
Played by using UNDO when stuck and switching different strategies, and with mannual move.
Data Structure
Games 1570 Data Structure
0, 0, 0, 0
0, 0, 0, 0
0, 2, 0, 0
0, 0, 4, 0
1, 0, up, ↑
...
16, 64, 2048, 8192
4, 16, 512, 4096
0, 0, 4, 16
2, 2, 4, 2
6805, 165680, right, →
...
2, 4, 2, 4
8, 64, 16, 2
128, 512, 2048, 8192
256, 1024, 4096, 16384
14943, 387388, _, _
For each game, every 4 rows to show the board, following 1 row to show the index, score, move, arrow
.
The last row is the end of the game, no move and no arrow, _ as placeholder.
I found it's the most understandable way for humans, probably not the most efficient for machine, which I don't care.
High Record Games Data Structure
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, up, 0
...
25508, 32, 32, 4, 2, 512, 256, 2, 0, 16384, 2048, 0, 0, 32768, 4096, 0, 2, up, 733188
...
114499, 8, 2, 2, 2, 512, 256, 32, 4, 32768, 16384, 1024, 4, 131072, 65536, 4096, 16, down, 3766860
High Record Games data is splited into files by 100 board-move pairs in each. Every row is index, board, move, score
- Downloads last month
- 0