Make README.md static (no game count; restore curated card)
Browse files
README.md
CHANGED
|
@@ -1,19 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Hexo Human Corpus
|
| 2 |
|
| 3 |
-
Encoding-free corpus of
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
|
| 8 |
-
provenance (sha256, counts, source filter).
|
| 9 |
|
| 10 |
```python
|
| 11 |
import json
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
```
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: Hexo Human Corpus (encoding-free)
|
| 4 |
+
task_categories:
|
| 5 |
+
- other
|
| 6 |
+
tags:
|
| 7 |
+
- hex
|
| 8 |
+
- hex-tac-toe
|
| 9 |
+
- board-games
|
| 10 |
+
- game-records
|
| 11 |
+
- reinforcement-learning
|
| 12 |
+
- alphazero
|
| 13 |
+
size_categories:
|
| 14 |
+
- 1K<n<10K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
# Hexo Human Corpus
|
| 18 |
|
| 19 |
+
Encoding-free corpus of decisive human *Hex Tac Toe* games — hexagonal grid,
|
| 20 |
+
six-in-a-row to win (player 1 opens with 1 move, then both players play 2 moves
|
| 21 |
+
per turn; the board is theoretically infinite).
|
| 22 |
+
|
| 23 |
+
Each line is one game as a **raw axial move list + outcome**. Nothing about any
|
| 24 |
+
neural-network encoding is baked in — no planes, no fixed board size, no action
|
| 25 |
+
space. Read it with the stdlib `json` module and build whatever representation
|
| 26 |
+
you want.
|
| 27 |
+
|
| 28 |
+
## Files
|
| 29 |
+
|
| 30 |
+
| file | description |
|
| 31 |
+
|------|-------------|
|
| 32 |
+
| `hexo_human_corpus.jsonl` | the corpus — one game per line |
|
| 33 |
+
| `SCHEMA.md` | full per-line schema + conventions |
|
| 34 |
+
| `dataset_metadata.json` | provenance: counts, sha256, source filter |
|
| 35 |
+
|
| 36 |
+
## Schema
|
| 37 |
+
|
| 38 |
+
One JSON object per line:
|
| 39 |
+
|
| 40 |
+
```json
|
| 41 |
+
{"game_hash":"0f8c6bdfc55e7f6f","moves":[[0,0],[2,-2],[-3,3]],"winner":1,"source":"human","elo":[898,955]}
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
| field | type | meaning |
|
| 45 |
+
|-------|------|---------|
|
| 46 |
+
| `game_hash` | string (16 hex) | SHA-256 of the move sequence — stable content/dedup key |
|
| 47 |
+
| `moves` | array of `[x, y]` | axial hex coords `(x,y)=(q,r)`, in play order |
|
| 48 |
+
| `winner` | `1` or `-1` | `1` = first player (X) wins, `-1` = second player (O) |
|
| 49 |
+
| `source` | string | `"human"` |
|
| 50 |
+
| `elo` | `[int\|null, int\|null]` | `[elo_p1, elo_p2]` |
|
| 51 |
+
|
| 52 |
+
**Conventions**
|
| 53 |
+
|
| 54 |
+
- Axial hex coordinates `(x, y)`; the board is infinite so values can be
|
| 55 |
+
negative. The first player's forced opener is always `(0, 0)`.
|
| 56 |
+
- Replay `moves` in order to reconstruct any board state.
|
| 57 |
+
- Only decisive (six-in-a-row) games are included — there are **no draws**.
|
| 58 |
|
| 59 |
+
## Usage
|
|
|
|
| 60 |
|
| 61 |
```python
|
| 62 |
import json
|
| 63 |
+
|
| 64 |
+
games = [json.loads(line) for line in open("hexo_human_corpus.jsonl")]
|
| 65 |
+
g = games[0]
|
| 66 |
+
print(g["moves"], g["winner"]) # [[0,0], [2,-2], ...] 1
|
| 67 |
```
|
| 68 |
|
| 69 |
+
## Provenance
|
| 70 |
+
|
| 71 |
+
Rated human games filtered to: rated, ≥20 moves, decisive by six-in-a-row.
|
| 72 |
+
Per-game `elo` is each player's rating at game time. Games are anonymised
|
| 73 |
+
(player ids dropped; only relative Elo retained). See `dataset_metadata.json`
|
| 74 |
+
for the exact game count and sha256.
|
| 75 |
+
|
| 76 |
+
License: MIT.
|