Chapter 2 · Game

Checkers

← Chapter 2
Turn: Player (Black)
You12
Computer12

    How to play

    You play the black pieces from the bottom, the computer plays the red pieces from the top. You move first.

    • Click one of your pieces; the squares it can move to are marked with dots. Then click the target square.
    • Men move one square diagonally, forward only, on the dark squares.
    • Capturing is mandatory: if you can jump over an opponent's piece to an empty square, you must. Pieces that can move are marked with a ring.
    • If the same piece can jump again after a jump, you must continue (multi-jump); click the landing square of each jump in turn.
    • A piece that reaches the far row becomes a king (gold ring): a king moves one square diagonally forward or backward and can also capture backward.
    • The side that cannot move or has lost all its pieces loses. If 50 moves pass with no capture and no promotion, the game is a draw.
    • Undo takes back your last move and the computer's reply.

    The computer opponent

    The computer runs a minimax search and cuts unnecessary branches with alpha-beta pruning. The depth sets how many half-moves (plies) it looks ahead. The evaluation function adds up points for men (100), kings (160) and advancement. The search deepens step by step up to the chosen depth; on the hard levels, if the time limit (about 1.5 seconds) runs out, the move from the deepest completed search is played.

    What it shows

    Checkers is a sequential, zero-sum, perfect-information game. Because the game tree is huge, the computer does not search the whole tree but only to a limited depth, scoring the leaves with a heuristic evaluation. The deeper the search, the stronger the opponent, but the computational cost grows exponentially.