This is a self-contained single-file chess game with a simple minimax AI (no castling and en-passant implemented). Pawn promotions auto-queen. Basic legality checking (no leaving king in check) is included.
Press U to undo. Press N for new game. Use console: setAILevel(n) to change depth (2-4 recommended).
© Byte&Cloud 2025