We use the excellent
chess.js library
to simulate a chess game where each move is generated from the
moves
buffer. That is,
for each byte in
moves
, we cycle through the list of
all possible moves
and choose the one at the index specified by the byte (modulo the length of the list of moves).
Even though each player only plays 8 moves, they're probably not very good moves so
you're likely to generate a never-seen-before game.