Skip to content
James Stanley edited this page May 13, 2020 · 58 revisions

Still to do:

autopatzerui

  • Cancel a seek
  • Cancel the "create a seek" window to get back to homescreen (e.g. to power off the pi, or choose an existing game instead)
  • claim draw, claim victory
  • keep cursor hidden even on button elements or whatever
  • show "Accept draw" instead of "Offer draw" if we have an active draw offer (i.e. if we're white, gameState message has bdraw=true); note draw offers can be rescinded so this needs to be able to change in both directions
  • show rating change after end of game

autopatzerd

  • ARP thing?

Board

  • Limit switches instead of crash-homing
  • Why do the steppers whine at idle?
  • Would a Trinamic silent stepper driver make it run quieter (both at idle and in motion)?
  • bottom cover so the wires can't get snagged

gameState fields

moves

List of moves of the game, in UCI format.

wtime, btime, winc, binc

Time and increment for white and black players, measured in milliseconds.

wdraw, bdraw

True if the white or black user, respectively, has offered a draw.

status

Possible values:

From https://github.com/ornicar/lila/blob/master/ui/game/src/status.ts

  • created
  • started
  • aborted
  • mate
  • resign
  • stalemate
  • timeout
  • draw
  • outoftime
  • cheat
  • noStart
  • variantEnd

We should probably check for game ended by status != "created" && status != "started" rather than trying to enumerate every possible status. We could just display the status on-screen in the event that we don't recognise it.

winner

Either "white" or "black", once the game has ended.

rematch

Not sure what value this field will have. Presumably some indication that the other player has offered a rematch?

More

What does it look like if you get the "claim draw" or "claim victory" buttons?

Clone this wiki locally