This is a simple implementation of the classic board game, implemented in React. It supports all possible moves, including castling, and en passant (both explained below).
At the moment there is no support for online play, or even a simple AI opponent, but both options are currently being examined.
Castling is a special move that allows a king and a rook to move at the same time, under certain circumstances:
If these conditions are met, the king can move 2 spaces toward the rook, and the rook moves into the space the king skipped over.
Most people know that a pawn can jump two spaces the first time it moves. En passant (French for "in passing") is a rare move that can counter such a double-jump.
For example, say a white pawn double-jumps, and lands side-by-side with a black pawn. That black pawn can then move into the space that was jumped over (right behind the white pawn), and capture its enemy!
It's not useful every game, but is very powerful in the right situation!
Assets have been borrowed from Wikipedia.