VreVre commited on
Commit
11b5a41
·
verified ·
1 Parent(s): 41ce24b

Chess Challenge submission by VreVre

Browse files
Files changed (7) hide show
  1. README.md +26 -0
  2. config.json +20 -0
  3. model.safetensors +3 -0
  4. special_tokens_map.json +6 -0
  5. tokenizer.py +469 -0
  6. tokenizer_config.json +50 -0
  7. vocab.json +83 -0
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - chess
5
+ - llm-course
6
+ - chess-challenge
7
+ license: mit
8
+ ---
9
+
10
+ # chess_vre_
11
+
12
+ Chess model submitted to the LLM Course Chess Challenge.
13
+
14
+ ## Submission Info
15
+
16
+ - **Submitted by**: [VreVre](https://huggingface.co/VreVre)
17
+ - **Parameters**: 974,464
18
+ - **Organization**: LLM-course
19
+
20
+ ## Model Details
21
+
22
+ - **Architecture**: Chess Transformer (GPT-style)
23
+ - **Vocab size**: 82
24
+ - **Embedding dim**: 92
25
+ - **Layers**: 11
26
+ - **Heads**: 4
config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ChessForCausalLM"
4
+ ],
5
+ "bos_token_id": 1,
6
+ "dropout": 0.1,
7
+ "dtype": "float32",
8
+ "eos_token_id": 2,
9
+ "layer_norm_epsilon": 1e-05,
10
+ "model_type": "chess_transformer",
11
+ "n_ctx": 256,
12
+ "n_embd": 92,
13
+ "n_head": 4,
14
+ "n_inner": 276,
15
+ "n_layer": 11,
16
+ "pad_token_id": 0,
17
+ "tie_weights": true,
18
+ "transformers_version": "4.57.6",
19
+ "vocab_size": 82
20
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f0cad9c9a65d97323433751c7821c35819d86687274eabc7082194d7f8fa454
3
+ size 3909280
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[BOS]",
3
+ "eos_token": "[EOS]",
4
+ "pad_token": "[PAD]",
5
+ "unk_token": "[UNK]"
6
+ }
tokenizer.py ADDED
@@ -0,0 +1,469 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Custom Chess Tokenizer for the Chess Challenge.
3
+
4
+ This tokenizer treats each move as a single token using the extended UCI notation
5
+ from the Lichess dataset (e.g., WPe2e4, BNg8f6).
6
+
7
+ The dataset format uses:
8
+ - W/B prefix for White/Black
9
+ - Piece letter: P=Pawn, N=Knight, B=Bishop, R=Rook, Q=Queen, K=King
10
+ - Source and destination squares (e.g., e2e4)
11
+ - Special suffixes: (x)=capture, (+)=check, (+*)=checkmate, (o)/(O)=castling
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import json
17
+ import os
18
+ from pathlib import Path
19
+ from typing import Dict, List, Optional
20
+
21
+ from transformers import PreTrainedTokenizer
22
+
23
+ import re
24
+
25
+ class ChessTokenizer(PreTrainedTokenizer):
26
+ """
27
+ A custom tokenizer for chess moves using extended UCI notation.
28
+
29
+ This tokenizer maps each possible chess move to a unique token ID.
30
+ The vocabulary is built from the training dataset to ensure all moves
31
+ encountered during training have a corresponding token.
32
+
33
+ Example:
34
+ >>> tokenizer = ChessTokenizer()
35
+ >>> tokenizer.encode("WPe2e4 BPe7e5")
36
+ [1, 42, 87, 2] # [BOS, e2e4, e7e5, EOS]
37
+ """
38
+
39
+ model_input_names = ["input_ids", "attention_mask"]
40
+ vocab_files_names = {"vocab_file": "vocab.json"}
41
+
42
+ # Special tokens
43
+ PAD_TOKEN = "[PAD]"
44
+ BOS_TOKEN = "[BOS]"
45
+ EOS_TOKEN = "[EOS]"
46
+ UNK_TOKEN = "[UNK]"
47
+ EOM_TOKEN = "EOM" # End of Move token
48
+
49
+ MOVE_REGEX = re.compile(
50
+ r"""
51
+ (?P<color>[WB])
52
+ (?P<piece>[PNBRQK])
53
+ (?P<from>[a-h][1-8])
54
+ (?P<capture>x)?
55
+ (?P<to>[a-h][1-8])
56
+ (?P<promotion>[QRBN])?
57
+ (?P<check>[+#])?
58
+ """,
59
+ re.VERBOSE,
60
+ )
61
+ def __init__(
62
+ self,
63
+ vocab_file: Optional[str] = None,
64
+ vocab: Optional[Dict[str, int]] = None,
65
+ **kwargs,
66
+ ):
67
+ """
68
+ Initialize the chess tokenizer.
69
+
70
+ Args:
71
+ vocab_file: Path to a JSON file containing the vocabulary mapping.
72
+ vocab: Dictionary mapping tokens to IDs (alternative to vocab_file).
73
+ **kwargs: Additional arguments passed to PreTrainedTokenizer.
74
+ """
75
+ # Initialize special tokens
76
+ self._pad_token = self.PAD_TOKEN
77
+ self._bos_token = self.BOS_TOKEN
78
+ self._eos_token = self.EOS_TOKEN
79
+ self._unk_token = self.UNK_TOKEN
80
+
81
+
82
+ # Remove any duplicate special-token entries passed through kwargs
83
+ # to avoid "multiple values for keyword" errors when loading from disk.
84
+ kwargs.pop("pad_token", None)
85
+ kwargs.pop("bos_token", None)
86
+ kwargs.pop("eos_token", None)
87
+ kwargs.pop("unk_token", None)
88
+
89
+ # Load or create vocabulary
90
+ if vocab is not None:
91
+ self._vocab = vocab
92
+ elif vocab_file is not None and os.path.exists(vocab_file):
93
+ with open(vocab_file, "r", encoding="utf-8") as f:
94
+ self._vocab = json.load(f)
95
+ else:
96
+ # Create a minimal vocabulary with just special tokens
97
+ # The full vocabulary should be built from the dataset
98
+ self._vocab = self._create_default_vocab()
99
+
100
+ # Create reverse mapping
101
+ self._ids_to_tokens = {v: k for k, v in self._vocab.items()}
102
+
103
+ # Call parent init AFTER setting up vocab
104
+ super().__init__(
105
+ pad_token=self._pad_token,
106
+ bos_token=self._bos_token,
107
+ eos_token=self._eos_token,
108
+ unk_token=self._unk_token,
109
+ **kwargs,
110
+ )
111
+
112
+ def _create_default_vocab(self) -> Dict[str, int]:
113
+ """
114
+ Create a minimal default vocabulary with just special tokens.
115
+
116
+ For the full vocabulary, use `build_vocab_from_dataset()`.
117
+ This minimal vocab is just a placeholder - you should build from data.
118
+ """
119
+ special_tokens = [self.PAD_TOKEN, self.BOS_TOKEN, self.EOS_TOKEN, self.UNK_TOKEN]
120
+ vocab = {token: idx for idx, token in enumerate(special_tokens)}
121
+ return vocab
122
+
123
+ @classmethod
124
+ def build_vocab_from_iterator(
125
+ cls,
126
+ iterator,
127
+ min_frequency: int = 1,
128
+ ) -> "ChessTokenizer":
129
+ """
130
+ Build a tokenizer vocabulary from an iterator of game strings.
131
+
132
+ Args:
133
+ iterator: An iterator yielding game strings (space-separated moves).
134
+ min_frequency: Minimum frequency for a token to be included.
135
+
136
+ Returns:
137
+ A ChessTokenizer with the built vocabulary.
138
+ """
139
+ from collections import Counter
140
+
141
+ token_counts = Counter()
142
+
143
+ for game in iterator:
144
+ moves = game.strip().split()
145
+ token_counts.update(moves)
146
+
147
+ # Filter by frequency
148
+ tokens = [
149
+ token for token, count in token_counts.items()
150
+ if count >= min_frequency
151
+ ]
152
+
153
+ # Sort for reproducibility
154
+ tokens = sorted(tokens)
155
+
156
+ # Build vocabulary
157
+ special_tokens = [cls.PAD_TOKEN, cls.BOS_TOKEN, cls.EOS_TOKEN, cls.UNK_TOKEN]
158
+ vocab = {token: idx for idx, token in enumerate(special_tokens + tokens)}
159
+
160
+ return cls(vocab=vocab)
161
+
162
+
163
+ @classmethod
164
+ def build_vocab_from_iterator_bis(
165
+ cls,
166
+ iterator,
167
+ min_frequency: int = 1,
168
+ ) -> "ChessTokenizer":
169
+ from collections import Counter
170
+ import re
171
+
172
+ MOVE_REGEX = re.compile(
173
+ r"""
174
+ (?P<color>[WB])
175
+ (?P<piece>[PNBRQK])
176
+ (?P<from>[a-h][1-8])
177
+ (?P<to>[a-h][1-8])
178
+ (?P<capture>[(][x][)])?
179
+ (?P<check>[(][+][)])?
180
+ (?P<mate>[(][+][*][)])?
181
+ (?P<castle>[(][oO][)])?
182
+ """,
183
+ re.VERBOSE,
184
+ )
185
+
186
+
187
+ token_counts = Counter()
188
+
189
+ for game in iterator:
190
+ moves = game.strip().split()
191
+
192
+ for move in moves:
193
+
194
+ m = MOVE_REGEX.fullmatch(move)
195
+ if not m:
196
+ token_counts.update([cls.UNK_TOKEN])
197
+ continue
198
+
199
+ # Color + piece
200
+ token_counts.update([
201
+ m["color"],
202
+ m["piece"],
203
+ m['from'],
204
+ m['to'],
205
+ ])
206
+
207
+ if m["capture"]:
208
+ token_counts.update(["CAP"])
209
+
210
+ if m["check"]:
211
+ token_counts.update(["CHECK"])
212
+ if m["mate"]:
213
+ token_counts.update(["MATE"])
214
+ if m["castle"]:
215
+ if m["castle"] == "(o)":
216
+ token_counts.update(["CASTLE_K"])
217
+ elif m["castle"] == "(O)":
218
+ token_counts.update(["CASTLE_Q"])
219
+
220
+ tokens = [tok for tok, c in token_counts.items() if c >= min_frequency]
221
+ tokens = tokens + ["EOM"]
222
+ tokens = sorted(tokens)
223
+
224
+ special_tokens = [
225
+ cls.PAD_TOKEN,
226
+ cls.BOS_TOKEN,
227
+ cls.EOS_TOKEN,
228
+ cls.UNK_TOKEN,
229
+ ]
230
+
231
+ vocab = {tok: i for i, tok in enumerate(special_tokens + tokens)}
232
+ return cls(vocab=vocab)
233
+
234
+ @classmethod
235
+ def build_vocab_from_dataset(
236
+ cls,
237
+ dataset_name: str = "dlouapre/lichess_2025-01_1M",
238
+ split: str = "train",
239
+ column: str = "text",
240
+ min_frequency: int = 500,
241
+ max_samples: Optional[int] = 100000,
242
+ ) -> "ChessTokenizer":
243
+ """
244
+ Build a tokenizer vocabulary from a Hugging Face dataset.
245
+
246
+ Args:
247
+ dataset_name: Name of the dataset on Hugging Face Hub.
248
+ split: Dataset split to use.
249
+ column: Column containing the game strings.
250
+ min_frequency: Minimum frequency for a token to be included (default: 500).
251
+ max_samples: Maximum number of samples to process (default: 100k).
252
+
253
+ Returns:
254
+ A ChessTokenizer with the built vocabulary.
255
+ """
256
+ from datasets import load_dataset
257
+
258
+ dataset = load_dataset(dataset_name, split=split)
259
+
260
+ if max_samples is not None:
261
+ dataset = dataset.select(range(min(max_samples, len(dataset))))
262
+
263
+ def game_iterator():
264
+ for example in dataset:
265
+ yield example[column]
266
+
267
+ return cls.build_vocab_from_iterator_bis(game_iterator(), min_frequency=min_frequency)
268
+
269
+ @property
270
+ def vocab_size(self) -> int:
271
+ """Return the size of the vocabulary."""
272
+ return max(self._vocab.values()) + 1
273
+
274
+ def get_vocab(self) -> Dict[str, int]:
275
+ """Return the vocabulary as a dictionary."""
276
+ return dict(self._vocab)
277
+
278
+
279
+ def _tokenize(self, text: str) -> List[str]:
280
+
281
+ tokens: List[str] = []
282
+
283
+ MOVE_REGEX = re.compile(
284
+ r"""
285
+ (?P<color>[WB])
286
+ (?P<piece>[PNBRQK])
287
+ (?P<from>[a-h][1-8])
288
+ (?P<to>[a-h][1-8])
289
+ (?P<capture>[(][x][)])?
290
+ (?P<check>[(][+][)])?
291
+ (?P<mate>[(][+][*][)])?
292
+ (?P<castle>[(][oO][)])?
293
+ """,
294
+ re.VERBOSE,
295
+ )
296
+
297
+ moves = text.split()
298
+
299
+ for move in moves:
300
+ # --- Castling ---
301
+ """
302
+ if move in ("WKe1g1", "BKe8g8"):
303
+ tokens.extend(["W", "K", "CASTLE_K", "EOM"])
304
+ continue
305
+
306
+ if move in ("WKe1c1", "BKe8c8"):
307
+ tokens.extend(["W", "K", "CASTLE_Q", "EOM"])
308
+ continue
309
+ """
310
+
311
+ m = MOVE_REGEX.fullmatch(move)
312
+ if not m:
313
+ tokens.append(self.UNK_TOKEN)
314
+ continue
315
+
316
+ # Color & piece
317
+ tokens.append(m["color"])
318
+ tokens.append(m["piece"])
319
+ tokens.append(m['from'])
320
+
321
+
322
+
323
+ # --- TO + FLAGS + EOM ---
324
+ to_tok = m['to']
325
+ tokens.append(to_tok)
326
+
327
+ if m["capture"]:
328
+ tokens.append("CAP")
329
+
330
+
331
+ if m["check"] == "+":
332
+ tokens.append("CHECK")
333
+ elif m["check"] == "#":
334
+ tokens.append("MATE")
335
+
336
+ if m["castle"]:
337
+ if m["castle"] == "(o)":
338
+ tokens.append("CASTLE_K")
339
+ elif m["castle"] == "(O)":
340
+ tokens.append("CASTLE_Q")
341
+
342
+ if to_tok:
343
+ tokens.append("EOM")
344
+
345
+ return tokens
346
+
347
+
348
+ def _convert_token_to_id(self, token: str) -> int:
349
+ """Convert a token to its ID."""
350
+ return self._vocab.get(token, self._vocab.get(self.UNK_TOKEN, 0))
351
+
352
+ def _convert_id_to_token(self, index: int) -> str:
353
+ """Convert an ID to its token."""
354
+ return self._ids_to_tokens.get(index, self.UNK_TOKEN)
355
+
356
+ def convert_tokens_to_string(self, tokens: List[str]) -> str:
357
+ special = {
358
+ self.PAD_TOKEN,
359
+ self.BOS_TOKEN,
360
+ self.EOS_TOKEN,
361
+ self.UNK_TOKEN,
362
+ }
363
+
364
+ moves = []
365
+ current = []
366
+
367
+ for tok in tokens:
368
+ if tok in special:
369
+ continue
370
+
371
+ if tok == "EOM":
372
+ moves.append("".join(current) + " ")
373
+ current = []
374
+ continue
375
+
376
+ if tok == "W" or tok == "B":
377
+ current.append(tok)
378
+
379
+ elif tok in {"P","N","B","R","Q","K"}:
380
+ current.append(tok)
381
+
382
+ elif tok == "CAP":
383
+ current.append("x")
384
+
385
+ elif tok == "CHECK":
386
+ current.append("+")
387
+
388
+ elif tok == "MATE":
389
+ current.append("+*")
390
+
391
+ elif tok.startswith("CASTLE"):
392
+ if tok == "CASTLE_K":
393
+ moves.append("(o)")
394
+ elif tok == "CASTLE_Q":
395
+ moves.append("(0)")
396
+ current = []
397
+
398
+ else :
399
+ current.append(tok[:2])
400
+
401
+
402
+ moves.append("".join(current))
403
+
404
+ return "".join(moves)
405
+
406
+
407
+
408
+ def save_vocabulary(
409
+ self,
410
+ save_directory: str,
411
+ filename_prefix: Optional[str] = None,
412
+ ) -> tuple:
413
+ """
414
+ Save the vocabulary to a JSON file.
415
+
416
+ Args:
417
+ save_directory: Directory to save the vocabulary.
418
+ filename_prefix: Optional prefix for the filename.
419
+
420
+ Returns:
421
+ Tuple containing the path to the saved vocabulary file.
422
+ """
423
+ if not os.path.isdir(save_directory):
424
+ os.makedirs(save_directory, exist_ok=True)
425
+
426
+ vocab_file = os.path.join(
427
+ save_directory,
428
+ (filename_prefix + "-" if filename_prefix else "") + "vocab.json",
429
+ )
430
+
431
+ with open(vocab_file, "w", encoding="utf-8") as f:
432
+ json.dump(self._vocab, f, ensure_ascii=False, indent=2)
433
+
434
+ return (vocab_file,)
435
+
436
+
437
+ def count_vocab_from_dataset(
438
+ dataset_name: str = "dlouapre/lichess_2025-01_1M",
439
+ split: str = "train",
440
+ column: str = "text",
441
+ max_samples: Optional[int] = 10000,
442
+ ) -> Dict[str, int]:
443
+ """
444
+ Count token frequencies in a dataset (useful for vocabulary analysis).
445
+
446
+ Args:
447
+ dataset_name: Name of the dataset on Hugging Face Hub.
448
+ split: Dataset split to use.
449
+ column: Column containing the game strings.
450
+ max_samples: Maximum number of samples to process.
451
+
452
+ Returns:
453
+ Dictionary mapping tokens to their frequencies.
454
+ """
455
+ from collections import Counter
456
+ from datasets import load_dataset
457
+
458
+ dataset = load_dataset(dataset_name, split=split)
459
+
460
+ if max_samples is not None:
461
+ dataset = dataset.select(range(min(max_samples, len(dataset))))
462
+
463
+ token_counts = Counter()
464
+
465
+ for example in dataset:
466
+ moves = example[column].strip().split()
467
+ token_counts.update(moves)
468
+
469
+ return dict(token_counts)
tokenizer_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[BOS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[EOS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "17": {
28
+ "content": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ }
35
+ },
36
+ "auto_map": {
37
+ "AutoTokenizer": [
38
+ "tokenizer.ChessTokenizer",
39
+ null
40
+ ]
41
+ },
42
+ "bos_token": "[BOS]",
43
+ "clean_up_tokenization_spaces": false,
44
+ "eos_token": "[EOS]",
45
+ "extra_special_tokens": {},
46
+ "model_max_length": 1000000000000000019884624838656,
47
+ "pad_token": "[PAD]",
48
+ "tokenizer_class": "ChessTokenizer",
49
+ "unk_token": "[UNK]"
50
+ }
vocab.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "[PAD]": 0,
3
+ "[BOS]": 1,
4
+ "[EOS]": 2,
5
+ "[UNK]": 17,
6
+ "B": 4,
7
+ "CAP": 5,
8
+ "CASTLE_K": 6,
9
+ "CASTLE_Q": 7,
10
+ "CHECK": 8,
11
+ "EOM": 9,
12
+ "K": 10,
13
+ "MATE": 11,
14
+ "N": 12,
15
+ "P": 13,
16
+ "Q": 14,
17
+ "R": 15,
18
+ "W": 16,
19
+ "a1": 18,
20
+ "a2": 19,
21
+ "a3": 20,
22
+ "a4": 21,
23
+ "a5": 22,
24
+ "a6": 23,
25
+ "a7": 24,
26
+ "a8": 25,
27
+ "b1": 26,
28
+ "b2": 27,
29
+ "b3": 28,
30
+ "b4": 29,
31
+ "b5": 30,
32
+ "b6": 31,
33
+ "b7": 32,
34
+ "b8": 33,
35
+ "c1": 34,
36
+ "c2": 35,
37
+ "c3": 36,
38
+ "c4": 37,
39
+ "c5": 38,
40
+ "c6": 39,
41
+ "c7": 40,
42
+ "c8": 41,
43
+ "d1": 42,
44
+ "d2": 43,
45
+ "d3": 44,
46
+ "d4": 45,
47
+ "d5": 46,
48
+ "d6": 47,
49
+ "d7": 48,
50
+ "d8": 49,
51
+ "e1": 50,
52
+ "e2": 51,
53
+ "e3": 52,
54
+ "e4": 53,
55
+ "e5": 54,
56
+ "e6": 55,
57
+ "e7": 56,
58
+ "e8": 57,
59
+ "f1": 58,
60
+ "f2": 59,
61
+ "f3": 60,
62
+ "f4": 61,
63
+ "f5": 62,
64
+ "f6": 63,
65
+ "f7": 64,
66
+ "f8": 65,
67
+ "g1": 66,
68
+ "g2": 67,
69
+ "g3": 68,
70
+ "g4": 69,
71
+ "g5": 70,
72
+ "g6": 71,
73
+ "g7": 72,
74
+ "g8": 73,
75
+ "h1": 74,
76
+ "h2": 75,
77
+ "h3": 76,
78
+ "h4": 77,
79
+ "h5": 78,
80
+ "h6": 79,
81
+ "h7": 80,
82
+ "h8": 81
83
+ }