Classic two-player strategy game. Play against the AI — jump your opponent's pieces, crown your kings, and take the board.
Checkers — known as Draughts in much of the world — is one of the oldest and most beloved strategy board games in human history. Its origins trace back to ancient Egypt, where archaeologists discovered a checkerboard dating to roughly 1400 BCE. The modern standardized version of the game emerged in 12th-century France, where it was called Fierges, and later spread throughout Europe. By the 16th century, mandatory capture rules were added, transforming the game from a relatively open exchange into the tactical battle we know today.
The game is played on an 8x8 board with 64 squares, using only the dark squares. Each player starts with 12 pieces arranged on the three rows closest to them. Red moves first. The objective is simple: capture all of your opponent's pieces, or leave them with no legal moves.
Regular pieces move diagonally forward one square at a time. To capture an opponent's piece, you jump over it diagonally — the landing square must be empty. If a jump is available, you must take it (mandatory capture rule). After completing a jump, if you can jump again from the new position, you must continue — this is called a multi-jump chain, and it can dramatically swing the balance of a game in a single turn.
When a piece reaches the far end of the board (the opponent's back row), it is crowned a King. Kings can move and jump both forward and backward, making them far more powerful than regular pieces. Protecting your pieces from being kinged — while racing to king your own — is a central strategic tension of the game.
The computer opponent in this game uses a minimax algorithm with alpha-beta pruning, a classic technique from artificial intelligence research. The minimax algorithm builds a decision tree of all possible future game states up to a certain depth, then works backward to find the move that maximizes the AI's advantage while assuming you will play optimally in response.
Alpha-beta pruning is an optimization that eliminates branches of the search tree that cannot possibly influence the final decision — dramatically reducing computation time and allowing the AI to search deeper without slowing down the game. On Easy difficulty, the AI searches only 1-2 moves ahead and plays somewhat randomly. On Medium, it looks 3 moves deep and plays a solid positional game. On Hard, it searches 5 moves deep and will spot multi-jump traps, force exchanges, and race for kings with real purpose.
The AI's evaluation function scores each board position based on: total piece count, number of kings vs. regular pieces (kings are worth more), centrality bonus for pieces near the middle of the board, and advancement bonus for pieces closer to promotion. This heuristic makes the AI play an aggressive, forward-pressing style that creates challenging and entertaining games.