Hand-written chess rules, draw logic, FEN/SAN/PGN, and AI legality — verified in your browser. No external test libraries.