fixed some type bugs, uninitialized memory and async input function

experimental async input for single machine mode

fixed checkmate and completed implementation (more testing is still advised)

NEED TESTING: implemented check and checkmate - TODO: avoid checkmate by moving another piece in between

moved checkmate and stalemate flags to gamestate

introduced single machine mode

implemented king

(0) -30 -10 -7 +7 +10 +30 tip

mercurial