White to move

Built entirely with vanilla JavaScript — no libraries or frameworks. Includes full move validation, castling, en passant, promotion, and check/checkmate detection.

[view source]