Skip to content

Instantly share code, notes, and snippets.

@ornicar
Created January 25, 2023 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ornicar/a0928a1e1c88762f760dd782b832512f to your computer and use it in GitHub Desktop.
Save ornicar/a0928a1e1c88762f760dd782b832512f to your computer and use it in GitHub Desktop.
Game BSON fields: https://github.com/lichess-org/lila/blob/3a5c50a342c996a9880ec8ea7e37f5d645be5a5e/modules/game/src/main/Game.scala#L757-L799
Game.Player BSON fields: https://github.com/lichess-org/lila/blob/3a5c50a342c996a9880ec8ea7e37f5d645be5a5e/modules/game/src/main/Player.scala#L150-L161
must not be grouped:
- clock history (for lazy unpacking)
- status `s`
may be grouped together but not with other fields (used by LightGame)
- winnerColor `w`
can be grouped:
- playerIds `us`
- whitePlayer `p0`
- blackPlayer `p1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment