(game "Choko" (players 2) (equipment { (board (square 5) use:Vertex) (piece "Stick" Each (or "StepOrthogonalToEmpty" "HopOrthogonalCapture") ) (hand Each) (regions "AllSites" (sites Board)) }) (rules (start (place "Stick" "Hand" count:12)) (play (if (is Pending) (move (from (handSite Mover)) (to (sites Empty))) (or (if ("HandOccupied" Mover) (move (from (handSite Mover)) (to (sites Empty)) (then (set Pending))) ) (forEach Piece) ) ) ) (end ("CaptureAll" Next)) ) ) //------------------------------------------------------------------------------ (metadata (info { (description "Choko is a capturing game that was played in the Gambia River valley during the early twentieth century. ") (rules "Five rows of five holes. Each player has twelve sticks; one player's sticks are longer than the other player's. Players alternate turns placing one of their sticks in an empty hole on the board. A player may, on their turn, move a stick to an empty adjacent hole in an orthogonal direction instead of placing a stick. Players do not have to place all of their sticks before moving, but if they wish to place a stick after they have already moved, the opponent must also place a stick on their following turn. A player captures an opponent's stick by hopping over it in an orthogonal direction to an empty hole immediately on the opposite side of the opponent's stick. The player who captures all of the opponent's pieces wins.") (source "Parker 1909: 604.") (id "1069") (version "1.3.12") (classification "board/war/leaping/orthogonal") (credit "Eric Piette") (origin "This game was played in Senegambia, around 1909.") } ) (graphics { (piece Scale "Stick1" 0.4) (piece Scale "Stick2" 0.6) (show Edges Hidden) (show Symbol "disc" "AllSites" Vertex fillColour:(colour Grey) edgeColour:(colour Black) scale:0.9) }) (ai "Choko_ai" ) )