Definition mixins

Christopher Thorn morphcham at
Mon Nov 6 16:37:24 UTC 2017

JSON is not a good serialization format for chess positions or games.
We have FEN and PGN for those use cases. Implementing the "business
logic" for chess is quite a lot more challenging than implementing FEN
or PGN (de)serialization.

Mixins are well-suited for writing chess software in JavaScript. For
instance, a Knight is a "leaper", Bishops, Rooks and Queens are
"riders". People have imagined many fairy pieces[^1], which mix
various combinations of traits.


More information about the es-discuss mailing list