The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
contract: struct<history: string, optimal_move: string, optimal_moves: string, terminal_semantics: string>
child 0, history: string
child 1, optimal_move: string
child 2, optimal_moves: string
child 3, terminal_semantics: string
counts: struct<all_board_states: int64, all_board_states_rotation_and_reflection_canonical: int64, all_board (... 245 chars omitted)
child 0, all_board_states: int64
child 1, all_board_states_rotation_and_reflection_canonical: int64
child 2, all_board_states_rotation_canonical: int64
child 3, invalid_board_states: int64
child 4, nonterminal_legal_histories: int64
child 5, reachable_board_states: int64
child 6, reachable_board_states_rotation_and_reflection_canonical: int64
child 7, reachable_board_states_rotation_canonical: int64
files: struct<dihedral-canonical-reachable-board-states.jsonl: struct<rows: int64, sha256: string>, nonterm (... 286 chars omitted)
child 0, dihedral-canonical-reachable-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 1, nonterminal-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 2, nonterminal-legal-histories.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 3, reachable-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 4, rotation-canonical-reachable-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
format_version: int64
generator: string
tie_order: string
board: string
board_text: string
to
{'board': Value('string'), 'board_text': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
contract: struct<history: string, optimal_move: string, optimal_moves: string, terminal_semantics: string>
child 0, history: string
child 1, optimal_move: string
child 2, optimal_moves: string
child 3, terminal_semantics: string
counts: struct<all_board_states: int64, all_board_states_rotation_and_reflection_canonical: int64, all_board (... 245 chars omitted)
child 0, all_board_states: int64
child 1, all_board_states_rotation_and_reflection_canonical: int64
child 2, all_board_states_rotation_canonical: int64
child 3, invalid_board_states: int64
child 4, nonterminal_legal_histories: int64
child 5, reachable_board_states: int64
child 6, reachable_board_states_rotation_and_reflection_canonical: int64
child 7, reachable_board_states_rotation_canonical: int64
files: struct<dihedral-canonical-reachable-board-states.jsonl: struct<rows: int64, sha256: string>, nonterm (... 286 chars omitted)
child 0, dihedral-canonical-reachable-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 1, nonterminal-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 2, nonterminal-legal-histories.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 3, reachable-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
child 4, rotation-canonical-reachable-board-states.jsonl: struct<rows: int64, sha256: string>
child 0, rows: int64
child 1, sha256: string
format_version: int64
generator: string
tie_order: string
board: string
board_text: string
to
{'board': Value('string'), 'board_text': Value('string')}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
board string | board_text string |
|---|---|
.../.../... | . . .
. . .
. . . |
.../.../..X | . . .
. . .
. . X |
.../.../.OX | . . .
. . .
. O X |
.../.../.X. | . . .
. . .
. X . |
.../.../.XO | . . .
. . .
. X O |
.../.../O.X | . . .
. . .
O . X |
.../.../OXX | . . .
. . .
O X X |
.../.../XOX | . . .
. . .
X O X |
.../..O/.X. | . . .
. . O
. X . |
.../..O/.XX | . . .
. . O
. X X |
.../..O/OXX | . . .
. . O
O X X |
.../..O/X.. | . . .
. . O
X . . |
.../..O/X.X | . . .
. . O
X . X |
.../..O/XOX | . . .
. . O
X O X |
.../..O/XX. | . . .
. . O
X X . |
.../..O/XXO | . . .
. . O
X X O |
.../..X/.XO | . . .
. . X
. X O |
.../..X/O.. | . . .
. . X
O . . |
.../..X/O.X | . . .
. . X
O . X |
.../..X/OOX | . . .
. . X
O O X |
.../..X/OX. | . . .
. . X
O X . |
.../..X/OXO | . . .
. . X
O X O |
.../..X/X.O | . . .
. . X
X . O |
.../..X/XO. | . . .
. . X
X O . |
.../..X/XOO | . . .
. . X
X O O |
.../.O./..X | . . .
. O .
. . X |
.../.O./.X. | . . .
. O .
. X . |
.../.O./.XX | . . .
. O .
. X X |
.../.O./OXX | . . .
. O .
O X X |
.../.O./X.X | . . .
. O .
X . X |
.../.O./XOX | . . .
. O .
X O X |
.../.OO/.XX | . . .
. O O
. X X |
.../.OO/X.X | . . .
. O O
X . X |
.../.OO/XX. | . . .
. O O
X X . |
.../.OO/XXX | . . .
. O O
X X X |
.../.OX/.X. | . . .
. O X
. X . |
.../.OX/.XO | . . .
. O X
. X O |
.../.OX/O.X | . . .
. O X
O . X |
.../.OX/OX. | . . .
. O X
O X . |
.../.OX/OXX | . . .
. O X
O X X |
.../.OX/X.. | . . .
. O X
X . . |
.../.OX/X.O | . . .
. O X
X . O |
.../.OX/XO. | . . .
. O X
X O . |
.../.OX/XOX | . . .
. O X
X O X |
.../.OX/XXO | . . .
. O X
X X O |
.../.X./... | . . .
. X .
. . . |
.../.X./..O | . . .
. X .
. . O |
.../.X./.O. | . . .
. X .
. O . |
.../.X./.OX | . . .
. X .
. O X |
.../.X./.XO | . . .
. X .
. X O |
.../.X./O.X | . . .
. X .
O . X |
.../.X./OOX | . . .
. X .
O O X |
.../.X./OXO | . . .
. X .
O X O |
.../.XO/.OX | . . .
. X O
. O X |
.../.XO/.X. | . . .
. X O
. X . |
.../.XO/.XO | . . .
. X O
. X O |
.../.XO/O.X | . . .
. X O
O . X |
.../.XO/OX. | . . .
. X O
O X . |
.../.XO/OXX | . . .
. X O
O X X |
.../.XO/X.. | . . .
. X O
X . . |
.../.XO/X.O | . . .
. X O
X . O |
.../.XO/XO. | . . .
. X O
X O . |
.../.XO/XOX | . . .
. X O
X O X |
.../.XO/XXO | . . .
. X O
X X O |
.../.XX/O.. | . . .
. X X
O . . |
.../.XX/O.O | . . .
. X X
O . O |
.../.XX/OO. | . . .
. X X
O O . |
.../.XX/OOX | . . .
. X X
O O X |
.../.XX/OXO | . . .
. X X
O X O |
.../.XX/XOO | . . .
. X X
X O O |
.../O.O/.XX | . . .
O . O
. X X |
.../O.O/X.X | . . .
O . O
X . X |
.../O.O/XXX | . . .
O . O
X X X |
.../O.X/... | . . .
O . X
. . . |
.../O.X/..X | . . .
O . X
. . X |
.../O.X/.OX | . . .
O . X
. O X |
.../O.X/.X. | . . .
O . X
. X . |
.../O.X/.XO | . . .
O . X
. X O |
.../O.X/O.X | . . .
O . X
O . X |
.../O.X/OX. | . . .
O . X
O X . |
.../O.X/OXX | . . .
O . X
O X X |
.../O.X/X.. | . . .
O . X
X . . |
.../O.X/X.O | . . .
O . X
X . O |
.../O.X/XO. | . . .
O . X
X O . |
.../O.X/XOX | . . .
O . X
X O X |
.../O.X/XXO | . . .
O . X
X X O |
.../OOX/..X | . . .
O O X
. . X |
.../OOX/.X. | . . .
O O X
. X . |
.../OOX/.XX | . . .
O O X
. X X |
.../OOX/OXX | . . .
O O X
O X X |
.../OOX/X.. | . . .
O O X
X . . |
.../OOX/X.X | . . .
O O X
X . X |
.../OOX/XOX | . . .
O O X
X O X |
.../OOX/XX. | . . .
O O X
X X . |
.../OOX/XXO | . . .
O O X
X X O |
.../OXO/..X | . . .
O X O
. . X |
.../OXO/.X. | . . .
O X O
. X . |
.../OXO/.XX | . . .
O X O
. X X |
.../OXO/OXX | . . .
O X O
O X X |
.../OXO/X.X | . . .
O X O
X . X |
Tic-tac-toe raw-history and symmetry corpus
A deterministic, generated corpus for 3×3 tic-tac-toe move-policy research. It contains the chronology-preserving, nonterminal legal histories used by the custom raw-history contracts documented in Crystal-9 and Palace-9, plus reproducible board-state and symmetry-reduced views.
This is a dataset repository. It contains no model weights, runtime, checkpoint, or inference service.
Square alphabet and board representation
Each letter identifies a board square. A history is the occupied-square letters in chronological order: odd positions are X moves and even positions are O moves.
| Letter | Row | Column | Grid |
|---|---|---|---|
a |
1 | 1 | top-left |
b |
1 | 2 | top-center |
c |
1 | 3 | top-right |
d |
2 | 1 | middle-left |
e |
2 | 2 | center |
f |
2 | 3 | middle-right |
g |
3 | 1 | bottom-left |
h |
3 | 2 | bottom-center |
i |
3 | 3 | bottom-right |
a | b | c
---+---+---
d | e | f
---+---+---
g | h | i
For example, history ae means X occupies a, then O occupies e:
X . .
. O .
. . .
JSONL board uses slash-separated rows (X../.O./...) and board_text uses the written three-line grid above. . means empty.
Labels and terminal semantics
optimal_move is one deterministic minimax target. It is the first optimal legal move using fixed tie order:
e b d f h c g i a
optimal_moves retains every equally optimal move in that same order. This lets consumers distinguish the deterministic target used by the released policies from other equally correct continuations.
There are no win labels and no winning-line annotations in this data. The rows describe moves, boards, and policy targets only. A sequence that tries to continue after a terminal board is invalid; terminality is represented only by the lack of a legal continuation, never by a supplied winner or line-of-three field.
! is reserved by the related model contracts for malformed, repeated-square, terminal, or otherwise out-of-protocol input. It is not a next-move target in nonterminal-legal-histories.jsonl.
Contents
| File | Rows | Purpose |
|---|---|---|
data/nonterminal-legal-histories.jsonl |
294,778 | Chronological legal histories through eight moves with deterministic and all-optimal targets. Primary raw-history corpus. |
data/reachable-board-states.jsonl |
5,478 | Unique boards reachable by legal alternating play, including positions where play cannot continue. |
data/nonterminal-board-states.jsonl |
4,520 | Unique reachable boards that have a legal continuation. |
data/rotation-canonical-reachable-board-states.jsonl |
1,383 | Unique reachable boards after canonicalization across the four rotations. |
data/dihedral-canonical-reachable-board-states.jsonl |
765 | Unique reachable boards after canonicalization across rotations and horizontal reflection (the 8 square symmetries). |
data/manifest.json |
— | Generation contract, exact row counts, and SHA-256 for every JSONL artifact. |
generate_dataset.py |
— | Standard-library-only deterministic generator. |
State-space statistics
Every square has three raw possibilities (., X, O), giving $3^9 = 19,683$ board patterns. A pattern is invalid here when no legal alternating move chronology reaches it without continuing after terminal play.
| View | All ternary boards | Reachable boards | Invalid board patterns |
|---|---|---|---|
| Raw board space | 19,683 | 5,478 | 14,205 |
| Rotation-canonical board space | 4,995 | 1,383 | — |
| Rotation-and-reflection canonical board space | 2,862 | 765 | — |
The rotation and dihedral outputs are deterministic transform views that reduce duplicate geometric board states. The primary history corpus deliberately keeps chronological move order because the Crystal-9 and Palace-9 interfaces accept histories, not canonical board encodings. Use a canonical board file only when your own training/input contract explicitly applies the matching transform to both board features and move coordinates.
Reproduce exactly
No network access or third-party package is required:
python3 generate_dataset.py --output data
sha256sum -c SHA256SUMS
The generator implements the move alphabet, legal-history walk, terminal-continuation rejection, minimax evaluation, fixed tie order, board-text rendering, rotations, and reflections. Regenerating data/ must reproduce its manifest.json row counts and artifact digests.
Provenance and scope
This is synthetic game data generated by exhaustive deterministic rules. It contains no collected gameplay, personal data, external game records, or claims about general gameplay intelligence.
- Crystal-9 is a custom local runtime move-policy model. Its published exhaustive policy gate covers 294,778 nonterminal legal histories.
- Palace-9 is a raw-history Qwen2-MoE model with GGUF compatibility.
The datasets make shared game semantics inspectable; they do not replace either repository's release-specific training, validation, or runtime evidence.
Project lineage
This dataset continues Lewis Moten’s long-running exploration of tic-tac-toe implementations and game AI. Earlier public projects include:
- Tic-Tac-Toe (2014) — offline-first HTML5/JavaScript game and Newell–Simon-inspired AI exploration.
- Tic-Tac-Toe LSL (2015) — interactive Second Life game with graduated AI difficulty.
- Tic-Tac-Toe AI (2016)
- Artificial Neural Network (2016) — neural-network learning project with game experiments.
- Octothorpe X/O (2016) — reusable JavaScript tic-tac-toe game engine.
These projects are historical context, not training-data sources or dependencies of this generated corpus, Crystal-9, or Palace-9.
Acknowledgments
This dataset was designed and directed by Lewis Moten. Its code and documentation were developed with assistance from GPT-5.6-terra Med, accessed through Hermes and using Honcho for context and project-memory support. Lewis Moten remains the project designer, maintainer, and publisher.
License
Apache License 2.0. See LICENSE.
- Downloads last month
- 63