File size: 5,085 Bytes
cedb89f
 
483be6a
cedb89f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
483be6a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c20f84e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cedb89f
 
 
 
 
483be6a
 
 
 
c20f84e
 
 
 
cedb89f
cedfc24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
---
dataset_info:
- config_name: '201301'
  features:
  - name: Event
    dtype: string
  - name: Site
    dtype: string
  - name: White
    dtype: string
  - name: Black
    dtype: string
  - name: Result
    dtype: string
  - name: UTCDate
    dtype: date32
  - name: UTCTime
    dtype: time64[us]
  - name: WhiteElo
    dtype: int64
  - name: BlackElo
    dtype: int64
  - name: WhiteRatingDiff
    dtype: float64
  - name: BlackRatingDiff
    dtype: float64
  - name: ECO
    dtype: string
  - name: Opening
    dtype: string
  - name: TimeControl
    dtype: string
  - name: Termination
    dtype: string
  - name: Transcript
    dtype: string
  splits:
  - name: train
    num_bytes: 61861759
    num_examples: 121332
  download_size: 30725337
  dataset_size: 61861759
- config_name: '201302'
  features:
  - name: Event
    dtype: string
  - name: Site
    dtype: string
  - name: White
    dtype: string
  - name: Black
    dtype: string
  - name: Result
    dtype: string
  - name: UTCDate
    dtype: date32
  - name: UTCTime
    dtype: time64[us]
  - name: WhiteElo
    dtype: int64
  - name: BlackElo
    dtype: int64
  - name: WhiteRatingDiff
    dtype: float64
  - name: BlackRatingDiff
    dtype: float64
  - name: ECO
    dtype: string
  - name: Opening
    dtype: string
  - name: TimeControl
    dtype: string
  - name: Termination
    dtype: string
  - name: Transcript
    dtype: string
  splits:
  - name: train
    num_bytes: 63219833
    num_examples: 123961
  download_size: 31415051
  dataset_size: 63219833
- config_name: '201303'
  features:
  - name: Event
    dtype: string
  - name: Site
    dtype: string
  - name: White
    dtype: string
  - name: Black
    dtype: string
  - name: Result
    dtype: string
  - name: UTCDate
    dtype: date32
  - name: UTCTime
    dtype: time64[us]
  - name: WhiteElo
    dtype: int64
  - name: BlackElo
    dtype: int64
  - name: WhiteRatingDiff
    dtype: float64
  - name: BlackRatingDiff
    dtype: float64
  - name: ECO
    dtype: string
  - name: Opening
    dtype: string
  - name: TimeControl
    dtype: string
  - name: Termination
    dtype: string
  - name: Transcript
    dtype: string
  splits:
  - name: train
    num_bytes: 81816980
    num_examples: 158635
  download_size: 40807271
  dataset_size: 81816980
configs:
- config_name: '201301'
  data_files:
  - split: train
    path: data/201301/train-*
- config_name: '201302'
  data_files:
  - split: train
    path: data/201302/train-*
- config_name: '201303'
  data_files:
  - split: train
    path: data/201303/train-*
---

# Dataset Card for Lichess.org UCI Dataset

## Description
<!-- 
- **Homepage:** [Lichess.org Database](https://database.lichess.org/)
- **Repository:** [GitHub Repository](https://github.com/austindavis/lichess-uci)
- **Paper:** N/A
- **Leaderboard:** N/A -->

The Lichess.org database has been converted to UCI format and uploaded here. 
This dataset groups games according to the year and month (yyyymm format) the games took place.

### Dataset Structure

Each record in the dataset has the following structure:

```json
{
  "Site": "abcd1234",
  "Event": "Rated Blitz game",
  "White": "player1",
  "Black": "player2",
  "Result": "1-0",
  "UTCDate": "2023-05-21",
  "UTCTime": "13:45:00",
  "WhiteElo": 1500,
  "BlackElo": 1400,
  "WhiteRatingDiff": 10,
  "BlackRatingDiff": -10,
  "ECO": "C50",
  "Opening": "Italian Game",
  "TimeControl": "300+0",
  "Termination": "Normal",
  "Transcript": "e2e4 e7e5 g1f3 b8c6 ... d7d8Q"
}
```
### Field descriptions
- `Site`: string, unique identifier for the game. Replays can be viewed by navigating to `https://lichess.org/<site>`
- `Event`: string, type of event.
- `White`: string, white player.
- `Black`: string, black player.
- `Result`: string, game result.
- `UTCDate`: date32, date of the game.
- `UTCTime`: time64[us], time of the game.
- `WhiteElo`: int64, ELO rating of the white player.
- `BlackElo`: int64, ELO rating of the black player.
- `WhiteRatingDiff`: float64, rating change for the white player.
- `BlackRatingDiff`: float64, rating change for the black player.
- `ECO`: string, ECO code of the opening.
- `Opening`: string, name of the opening.
- `TimeControl`: string, time control format.
- `Termination`: string, reason for game termination.
- `Transcript`: string, sequence of moves in UCI format. Note: Promotions are capitalized.

### Human versus Bot Players

The source data comes from games played on Lichess.org, an online platform where users from around the world play chess.
This database does not distinguish between human-and bot-played games. 
However, it's reasonable to assume games played before April 2018 were overwhelmingly played by human players since Lichess.org 
released its [bot api](https://github.com/lichess-org/api) on April 1st, 2018.

### Citation Information

If you use this dataset, please cite it as follows:

```
@misc{lichess_uci,
  author = {Davis, Austin},
  title = {Lichess.org Open Database in UCI format},
  year = {2024},
  howpublished = {\url{https://huggingface.co/datasets/austindavis/lichess-uci}},
}
```