litchee 0.1.5

Async, builder-pattern Rust client for the Lichess API: full endpoint coverage, NDJSON streaming, and OAuth2 PKCE ('Log in with Lichess').
Documentation
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
{
  "id": "q7ZvsdUF",
  "rated": true,
  "variant": "standard",
  "speed": "blitz",
  "perf": "blitz",
  "createdAt": 1514505150384,
  "lastMoveAt": 1514505592843,
  "status": "draw",
  "source": "arena",
  "players": {
    "white": {
      "user": {
        "name": "Lance5500",
        "title": "LM",
        "patron": true,
        "patronColor": 10,
        "id": "lance5500"
      },
      "rating": 2389,
      "ratingDiff": 4,
      "analysis": {
        "inaccuracy": 5,
        "mistake": 2,
        "blunder": 1,
        "acpl": 26,
        "accuracy": 90
      }
    },
    "black": {
      "user": {
        "name": "TryingHard87",
        "id": "tryinghard87"
      },
      "rating": 2498,
      "ratingDiff": -4,
      "analysis": {
        "inaccuracy": 3,
        "mistake": 3,
        "blunder": 1,
        "acpl": 26,
        "accuracy": 90
      }
    }
  },
  "opening": {
    "eco": "D31",
    "name": "Semi-Slav Defense: Marshall Gambit",
    "ply": 7
  },
  "moves": "d4 d5 c4 c6 Nc3 e6 e4 Nd7 exd5 cxd5 cxd5 exd5 Nxd5 Nb6 Bb5+ Bd7 Qe2+ Ne7 Nxb6 Qxb6 Bxd7+ Kxd7 Nf3 Qa6 Ne5+ Ke8 Qf3 f6 Nd3 Qc6 Qe2 Kf7 O-O Kg8 Bd2 Re8 Rac1 Nf5 Be3 Qe6 Rfe1 g6 b3 Bd6 Qd2 Kf7 Bf4 Qd7 Bxd6 Nxd6 Nc5 Rxe1+ Rxe1 Qc6 f3 Re8 Rxe8 Nxe8 Kf2 Nc7 Qb4 b6 Qc4+ Nd5 Nd3 Qe6 Nb4 Ne7 Qxe6+ Kxe6 Ke3 Kd6 g3 h6 Kd3 h5 Nc2 Kd5 a3 Nc6 Ne3+ Kd6 h4 Nd8 g4 Ne6 Ke4 Ng7 Nc4+ Ke6 d5+ Kd7 a4 g5 gxh5 Nxh5 hxg5 fxg5 Kf5 Nf4 Ne3 Nh3 Kg4 Ng1 Nc4 Kc7 Nd2 Kd6 Kxg5 Kxd5 f4 Nh3+ Kg4 Nf2+ Kf3 Nd3 Ke3 Nc5 Kf3 Ke6 Ke3 Kf5 Kd4 Ne6+ Kc4",
  "analysis": [
    {
      "eval": 8
    },
    {
      "eval": 7
    },
    {
      "eval": 10
    },
    {
      "eval": 14
    },
    {
      "eval": 2
    },
    {
      "eval": 9
    },
    {
      "eval": 5
    },
    {
      "eval": 85,
      "best": "d5e4",
      "variation": "dxe4 Nxe4 Bb4+ Nc3 c5 a3 Bxc3+ bxc3 Nc6 Nf3",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. dxe4 was best."
      }
    },
    {
      "eval": 96
    },
    {
      "eval": 98
    },
    {
      "eval": 88
    },
    {
      "eval": 87
    },
    {
      "eval": 81
    },
    {
      "eval": 88
    },
    {
      "eval": 82
    },
    {
      "eval": 90
    },
    {
      "eval": 79
    },
    {
      "eval": 160,
      "best": "f8e7",
      "variation": "Be7 Nxb6 axb6 Nf3 Nf6 O-O O-O Bd2 Bd6 Bc4 Re8 Qd3 Be6 Bxe6",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. Be7 was best."
      }
    },
    {
      "eval": 146
    },
    {
      "eval": 151
    },
    {
      "eval": 149
    },
    {
      "eval": 160
    },
    {
      "eval": 151
    },
    {
      "eval": 150
    },
    {
      "eval": 164
    },
    {
      "eval": 190
    },
    {
      "eval": 44,
      "best": "e5d3",
      "variation": "Nd3 Rd8",
      "judgment": {
        "name": "Mistake",
        "comment": "Mistake. Nd3 was best."
      }
    },
    {
      "eval": 61
    },
    {
      "eval": 59
    },
    {
      "eval": 54
    },
    {
      "eval": -34,
      "best": "e1e2",
      "variation": "Ke2 Rd8 Rd1 Qxf3+ Kxf3 Nf5 Be3 Nh4+ Kg3 g5 f4 gxf4+ Bxf4 Nf5+",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. Ke2 was best."
      }
    },
    {
      "eval": 158,
      "best": "c6g2",
      "variation": "Qxg2 Rf1 Qd5 Be3 Rc8 Nf4 Qf5 Rc1 Rxc1+ Bxc1 g5 Ne6 Kf7 Nd8+",
      "judgment": {
        "name": "Blunder",
        "comment": "Blunder. Qxg2 was best."
      }
    },
    {
      "eval": 142
    },
    {
      "eval": 183
    },
    {
      "eval": 177
    },
    {
      "eval": 340,
      "best": "e7d5",
      "variation": "Nd5 Rac1 Qe8 Qf3 Rd8 Nf4 Qf7 Nxd5 Qxd5 Qxd5+ Rxd5 Rc7 Rxd4 Bc3",
      "judgment": {
        "name": "Mistake",
        "comment": "Mistake. Nd5 was best."
      }
    },
    {
      "eval": 169,
      "best": "f1e1",
      "variation": "Rfe1 Rc8 Rac1 Qd7 Nf4 Rxc1 Rxc1 h5 Qd3 a5 Qb3+ Kh7 Rc5 Nf5",
      "judgment": {
        "name": "Mistake",
        "comment": "Mistake. Rfe1 was best."
      }
    },
    {
      "eval": 200
    },
    {
      "eval": 120,
      "best": "e2h5",
      "variation": "Qh5 Qd7 Rc7 Qxc7 Qxe8 Qc6 Qd8 h6 Bb4 Qe4 Ne1 Kf7 Nf3 Qc6",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. Qh5 was best."
      }
    },
    {
      "eval": 167
    },
    {
      "eval": 147
    },
    {
      "eval": 200,
      "best": "e6d7",
      "variation": "Qd7 Nf4"
    },
    {
      "eval": 92,
      "best": "c1c7",
      "variation": "Rc7 Qxa2",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. Rc7 was best."
      }
    },
    {
      "eval": 102
    },
    {
      "eval": 95
    },
    {
      "eval": 95
    },
    {
      "eval": 61
    },
    {
      "eval": 79
    },
    {
      "eval": 72
    },
    {
      "eval": 201,
      "best": "d7d6",
      "variation": "Qxd6 d5 Rxe1+ Rxe1 Re8 Rxe8 Kxe8 Nf4 Qe5 g3 Nd4 Qc3 Kd7 Qb4",
      "judgment": {
        "name": "Mistake",
        "comment": "Mistake. Qxd6 was best."
      }
    },
    {
      "eval": 190
    },
    {
      "eval": 183
    },
    {
      "eval": 106,
      "best": "d2e1",
      "variation": "Qxe1 Qe7 Qxe7+ Kxe7 Nxb7 Rc8 Re1+ Kd7 Nc5+ Kc6 g3 Re8 Rc1 Kd5",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. Qxe1 was best."
      }
    },
    {
      "eval": 108
    },
    {
      "eval": 93
    },
    {
      "eval": 101
    },
    {
      "eval": 101
    },
    {
      "eval": 107
    },
    {
      "eval": 100
    },
    {
      "eval": 105
    },
    {
      "eval": 103
    },
    {
      "eval": 118
    },
    {
      "eval": 117
    },
    {
      "eval": 116
    },
    {
      "eval": 83
    },
    {
      "eval": 95
    },
    {
      "eval": 90
    },
    {
      "eval": 94
    },
    {
      "eval": 94
    },
    {
      "eval": 93
    },
    {
      "eval": 88
    },
    {
      "eval": 102
    },
    {
      "eval": 79
    },
    {
      "eval": 120
    },
    {
      "eval": 114
    },
    {
      "eval": 124
    },
    {
      "eval": 108
    },
    {
      "eval": 133
    },
    {
      "eval": 100
    },
    {
      "eval": 156,
      "best": "d5d6",
      "variation": "Kd6 Kc4"
    },
    {
      "eval": 198
    },
    {
      "eval": 179
    },
    {
      "eval": 167
    },
    {
      "eval": 227,
      "best": "c6a5",
      "variation": "Na5 b4"
    },
    {
      "eval": 225
    },
    {
      "eval": 209
    },
    {
      "eval": 207
    },
    {
      "eval": 192
    },
    {
      "eval": 173
    },
    {
      "eval": 243,
      "best": "d6c6",
      "variation": "Kc6 a4 a6 Ne3 Kd6 d5 Kd7 Kd4 Ne8 gxh5 gxh5 Nf5 Nd6 Ng3",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. Kc6 was best."
      }
    },
    {
      "eval": 219
    },
    {
      "eval": 234
    },
    {
      "eval": 201
    },
    {
      "eval": 342,
      "best": "d7e7",
      "variation": "Ke7 Kf4 Ne8 g5 Kf7 gxf6 Kxf6 Nd2 Ng7 Ne4+ Ke7 Kg5 Nf5 d6+",
      "judgment": {
        "name": "Mistake",
        "comment": "Mistake. Ke7 was best."
      }
    },
    {
      "eval": 318
    },
    {
      "eval": 342
    },
    {
      "eval": 307
    },
    {
      "eval": 323
    },
    {
      "eval": 270
    },
    {
      "eval": 313
    },
    {
      "eval": 279
    },
    {
      "eval": 303
    },
    {
      "eval": 286
    },
    {
      "eval": 277
    },
    {
      "eval": 215
    },
    {
      "eval": 213
    },
    {
      "eval": 8,
      "best": "b3b4",
      "variation": "b4 Kc8 Nd6+ Kd7 Ne4 a6 Nc3 Kd6 Kg3 Ke5 b5 axb5 axb5 Kd6",
      "judgment": {
        "name": "Blunder",
        "comment": "Blunder. b4 was best."
      }
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 21
    },
    {
      "eval": 54
    },
    {
      "eval": 42
    },
    {
      "eval": 57
    },
    {
      "eval": 25
    },
    {
      "eval": 63
    },
    {
      "eval": 8,
      "best": "f3g4",
      "variation": "Kg4 Nf2+ Kf5 Kd4 Nf3+ Kc3 Ke6 Kxb3 f5 Ne4 Ke5 Nf2 Kf4 Nd3+",
      "judgment": {
        "name": "Inaccuracy",
        "comment": "Inaccuracy. Kg4 was best."
      }
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    },
    {
      "eval": 8
    }
  ],
  "tournament": "winter17",
  "clock": {
    "initial": 300,
    "increment": 3,
    "totalTime": 420
  },
  "division": {
    "middle": 22,
    "end": 53
  }
}