File size: 2,705 Bytes
450d81d
 
4ac250a
450d81d
 
 
 
 
4ac250a
 
 
 
526348b
 
872452d
 
773dc2e
 
90ff3c7
 
4ac250a
 
90ff3c7
4ac250a
90ff3c7
 
4ac250a
 
 
 
 
450d81d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
abce020
450d81d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
license: cc0-1.0
pretty_name: Antichess Openings
tags:
- chess
- lichess
- game
- games
dataset_info:
  features:
  - name: name
    dtype: string
  - name: pgn
    dtype: string
  - name: uci
    dtype: string
  - name: epd
    dtype: string
  - name: result
    dtype: string
  splits:
  - name: train
    num_bytes: 50493
    num_examples: 334
  download_size: 17073
  dataset_size: 50493
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---

# Dataset Card for Lichess Puzzles

<!-- Provide a quick summary of the dataset. -->
## Dataset Description

A list of Antichess openings.

### Dataset Creation

This dataset was compiled by **[tolius](https://lichess.org/@/tolius)**.

### Dataset Usage

Using the `datasets` library:

```python
from datasets import load_dataset

dset = load_dataset("Lichess/antichess-chess-openings", split="train")
```
 Using the `pandas` library:

 ```python
import pandas as pd

df = pd.read_parquet("hf://datasets/Lichess/antichess-chess-openings/data/train-00000-of-00001.parquet")
```

Using the `polars` library:

```python
import polars as pl

df = pl.read_parquet('hf://datasets/Lichess/antichess-chess-openings/data/train-00000-of-00001.parquet')
```

## Dataset Details

### Dataset Sample

One row of the dataset looks like this:

```python
{
 'name': 
 'pgn': 
 'uci': 
 'epd':
}
```
### Dataset Fields

Every row of the dataset contains the following fields:

- **`name`**: `string`, the name of the opening in English.
- **`pgn`**: `int`, the sequence of moves leading to the opening position. If not unique, the moves are the most common ones leading to that opening.
- **`uci`**: `int`, the same moves described by the `pgn` field in [UCI notation](https://backscattering.de/chess/uci/#move).
- **`epd`**: `int`, the [EPD](https://www.chessprogramming.org/Extended_Position_Description) ([FEN](https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation) without move numbers) of the opening position, en passant field only if legal

### Dataset Conventions

* Title case is used for opening names.
* Names are structured like `Opening family: Variation, Subvariation, ...`,
  e.g., `Sicilian Defense: Najdorf Variation, English Attack`.
* The suggested way to classify games is to play moves backwards until
  a named position is found. To make this work well with common transpositions,
  multiple entries for a single opening may be added.
* However, each name has a unique *shortest* line. If necessary,
  a distinguishing move is appended, e.g.,
  `King's Gambit Accepted: Schurig Gambit, with Bb5`.

## Additional Information

- To contribute to the dataset, send a PR or open an issue in the community tab