PS D:\maxime> run ./lab/chess --lang en

Chess vs AI

A full game of chess against a three-level alpha-beta AI that shows how many positions it evaluates.

Move 1Status playingPositions evaluated —Thinking —Your move (white).
controls · Click or tap a piece, then its destination square; keyboard: arrow keys then Enter.origin · chessIA — The Python/Pygame original implemented the rules (legal moves, castling, en passant, promotion, checkmate) for two human players, with no AI opponent. Here the rules are rewritten in TypeScript (adding stalemate, the 50-move rule, threefold repetition and insufficient material, checked with perft) and a negamax alpha-beta AI is added, running in a Web Worker.iaminimaxalpha-bêtajeuweb worker