(define "RemoveEnemyPiece" (if (can Move ("RemoveAnyEnemyPieceNotInLine3" Orthogonal)) ("RemoveAnyEnemyPieceNotInLine3" Orthogonal) ("RemoveAnyEnemyPiece") ) ) //------------------------------------------------------------------------------ (game "Twelve Men's Morris" (players 2) (equipment { (board use:Vertex) (hand Each) (piece "Marker" Each ("StepToEmpty" ~ (then ("ReplayIfLine3" Orthogonal exact:True))) ) }) (rules (start (place "Marker" "Hand" count:12)) phases:{ (phase "Placement" (play (if "SameTurn" "RemoveEnemyPiece" (move (from (handSite Mover)) (to (sites Empty)) (then ("ReplayIfLine3" Orthogonal exact:True)) ) ) ) (nextPhase Mover ("HandEmpty" Mover) "Movement") ) (phase "Movement" (play (if "SameTurn" "RemoveEnemyPiece" (if (> (count Pieces Mover) 3) (forEach Piece) (move (from (sites Occupied by:Mover)) (to (sites Empty)) ) ) ) ) ) } (end ("HavingLessPiecesLoss" Next 2)) ) ) //------------------------------------------------------------------------------ (option "Board" args:{} { (item "Without Diagonal" <(concentric Square rings:4)> "The board has no diagonal.") (item "With Diagonal" <(concentric Square rings:3 joinCorners:True)> "The board has some diagonals.")** } ) //------------------------------------------------------------------------------ (rulesets { (ruleset "Ruleset/With Diagonal (Suggested)" { "Board/With Diagonal" } ) (ruleset "Ruleset/Board Game Geek (Suggested)" { "Board/Without Diagonal" } ) }) //------------------------------------------------------------------------------ (metadata (info { (description "Twelve Men's Morris is a game of alignment known since at least the seventh century. It is played on a Nine Men's Morris board with corners of the concentric squares connected with diagonals.") (aliases {"Qvarn" "Dubbel-Qvarn"}) (useFor "Ruleset/With Diagonal (Suggested)" (rules "Each player uses twelve pieces. Play begins with each player placing pieces on empty points. If they make three in a row along the lines, they can remove one of the opponent's pieces. They cannot remove an opponent's piece that is in a three in a row formation unless there are no other options. Once all pieces are place, players take turns moving pieces one spot to an adjacent point along the lines. If a player makes three in a row, an opponent's piece is removed as in the first phase of the game. Once a player is reduced to three pieces, that player may move to any open space on the board. The game is won when the opponent is reduced to two pieces.")) (useFor "Ruleset/With Diagonal (Suggested)" (source "cyningstan")) (useFor "Ruleset/With Diagonal (Suggested)" (id "101")) (useFor "Ruleset/Board Game Geek (Suggested)" (rules "The board has four concentric squares, with lines connecting the midpoints of their sides. ")) (useFor "Ruleset/Board Game Geek (Suggested)" (source "BGG")) (useFor "Ruleset/Board Game Geek (Suggested)" (id "572")) (source "Murray 1951:43-44.") (id "101") (version "1.3.13") (classification "board/space/line") (credit "Eric Piette") (origin "This game was played in Unknown, from around 600 to 799.") } ) (ai "Twelve Men's Morris_ai" ) )