Play Lozza

A minimal game against Lozza. It shows the usual game loop: after every move the page sends the whole game as position startpos moves ... and asks for a move with go wtime btime winc binc, so Lozza manages its own time from the clocks the page keeps. There is no chess library; Lozza's own (non-standard) moves and board commands give the legal moves and the FEN to draw. Checkmate and stalemate are detected from bestmove 0000 and its score. To keep it simple, pawns always promote to a queen, and draws by repetition, the 50 move rule or insufficient material are not declared by the page.

starting...