(define "NextSiteFrom" ("NextSiteOnTrack" (pips) from:#1)) (define "NextSiteFromDist6" ("NextSiteOnTrack" 6 from:#1)) (define "RemoveAPiece" (move Remove (site))) (define "Bar" (mapEntry (mover))) (define "AllPieceEscaped" (no Pieces Mover)) (define "CanEscape" ("IsOffBoard" #1)) (define "Move" (forEach Site (sites Occupied by:Mover) (if ("CanEscape" #1) ("RemoveAPiece") (move (from (site)) (to #1 if:("NoEnemyOrOnlyOne" (to)) ("HittingCapture" ("Bar")) ) ) ) ) ) //----------------------------------------------------------------------------- (game "Myles" (players 2) (equipment { ("BackgammonBoard" ("BackgammonTracksSameDirectionWithBar")) (dice num:2) (map {(pair 1 19) (pair 2 6)}) // Bar (piece "Disc" Each) }) (rules (start { (place Stack "Disc1" 12 count:5) (place Stack "Disc1" 20 count:4) (place Stack "Disc1" 21 count:4) (place Stack "Disc1" 15 count:2) (place Stack "Disc2" 25 count:3) (place Stack "Disc2" 24 count:3) (place Stack "Disc2" 23 count:3) (place Stack "Disc2" 22 count:3) (place Stack "Disc2" 21 count:3) }) (play ("RollEachNewTurnMove" (if (all DiceUsed) ("Move" ("NextSiteFromDist6" (site))) (forEach Die if:("DieNotUsed") ("Move" ("NextSiteFrom" (site))) (then (moveAgain)) ) ) ) ) (end (if ("AllPieceEscaped") (result Mover Win) ) ) ) ) //------------------------------------------------------------------------- (metadata (info { (description "Myles is the name attributed to a fourteenth century English game. It is a European Tables game which is unnamed in the manuscript describing its rules. ") (rules "2x12 board, divided in half, where the spaces are rendered as points. Fifteen pieces per player. Two six-sided dice. Both players begin on the same side of the board, one player (who plays first) with five pieces on the rightmost point of the starting row, four on the fifth and sixth points and two in the eleventh point in the opposite row. The other player has three pieces each on the right five points in the second row. Players move according to the number on each die by moving one piece the value on one die then another piece the value on the other die, or by moving one piece the value of one die and then the value of the other. On each throw the player also plays a throw of 6 in addition to the throw presented by the dice. Pieces move in an anti-clockwise direction around the board. A piece cannot move to a point that is occupied by more than one of the opponent's pieces. If a piece lands on a point occupied by a single piece belonging to the opponent, the opponent's piece is removed from the board and must enter again from the leftmost point in the row where the pieces began. A piece may be borne off the board when a throw is greater than the number of points left on the board. The first player to bear all of their pieces off the board wins.") (source "Murray 1951: 123.") (id "1114") (version "1.3.12") (classification "board/race/escape") (author "Eric Piette") (origin "This game was played in England, from around 1300 to 1350.") } ) (graphics { (board Style backgammon) (stackType Backgammon) }) )