(game "Hujura" ) //------------------------------------------------------------------------------ (option "Variant" args:{ } { (item "Hujura (Ludii 1)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step (to if: (is Empty (to) ) ) (then (if (or { (is Line 3 N exact:True) (is Line 3 S exact:True) (is Line 3 E exact:True) (is Line 3 W exact:True) } ) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (<= (count Pieces Next) 2) (result Mover Win) ) ) ) > "The Hujura (Ludii 1) ruleset.") (item "Hujura (Ludii 2)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step (to if: (is Empty (to) ) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (<= (count Pieces Next) 2) (result Mover Win) ) ) ) > "The Hujura (Ludii 2) ruleset.") (item "Hujura (Ludii 3)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (if (= 3 (count Pieces Mover) ) (move (from (from) ) (to (sites Empty) ) ) (move Step (to if: (is Empty (to) ) ) ) (then (if (is Line 3 Orthogonal) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (<= (count Pieces Next) 2) (result Mover Win) ) ) ) > "The Hujura (Ludii 3) ruleset.") (item "Hujura (Ludii 4)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step (to if: (is Empty (to) ) ) (then (if (is Line 3) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (<= (count Pieces Next) 2) (result Mover Win) ) ) ) > "The Hujura (Ludii 4) ruleset.") (item "Hujura (Ludii 5)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step (to if: (is Empty (to) ) ) (then (if (or { (is Line 3 N exact:True) (is Line 3 S exact:True) (is Line 3 E exact:True) (is Line 3 W exact:True) } ) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (no Pieces Next) (result Next Loss) ) ) ) > "The Hujura (Ludii 5) ruleset.") (item "Hujura (Ludii 6)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (if (= 3 (count Pieces Mover) ) (move (from (from) ) (to (sites Empty) ) ) (move Step (to if: (is Empty (to) ) ) ) (then (if (is Line 3 Orthogonal) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (no Pieces Next) (result Next Loss) ) ) ) > "The Hujura (Ludii 6) ruleset.") (item "Hujura (Ludii 7)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step (to if: (is Empty (to) ) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (no Pieces Next) (result Next Loss) ) ) ) > "The Hujura (Ludii 7) ruleset.") (item "Hujura (Ludii 8)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step (to if: (is Empty (to) ) ) (then (if (is Line 3) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (no Pieces Next) (result Next Loss) ) ) ) > "The Hujura (Ludii 8) ruleset.") (item "Hujura (Ludii 9)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step (to if: (is Empty (to) ) ) (then (if (and (not (is Prev Mover) ) (is Line 3) ) (moveAgain) (if (no Moves Next) (and (moveAgain) (set Pending) ) ) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (no Pieces Next) (result Next Loss) ) ) ) > "The Hujura (Ludii 9) ruleset.") (item "Hujura (Ludii 10)" < (players 2) (equipment { (board (rectangle 3 3 diagonals:Alternating) use:Vertex) (hand Each) (piece "Marker" Each (move Step Orthogonal (to if: (is Empty (to) ) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) } ) (rules (start (place "Marker" "Hand" count:6) ) phases:{ (phase "Placement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (move (from (handSite Mover) ) (to (sites Empty) ) (then (if (is Line 3 Orthogonal exact:True) (moveAgain) ) ) ) ) ) (nextPhase Mover (all Sites (sites Hand Mover) if: (= 0 (count Cell at: (site) ) ) ) "Movement" ) ) (phase "Movement" (play (if (is Prev Mover) (move Remove (sites Occupied by:Enemy container:"Board") ) (forEach Piece) ) ) ) } (end (if (no Pieces Next) (result Next Loss) ) ) ) > "The Hujura (Ludii 10) ruleset.") (item "Incomplete" < (players 2) (equipment { ("ThreeMensMorrisBoard") (hand Each) (piece "Marker" Each [#]) }) (rules [#]) > "The incomplete ruleset." ) }) //------------------------------------------------------------------------------ (rulesets { (ruleset "Ruleset/Hujura (Ludii 1) (Reconstructed)" { "Variant/Hujura (Ludii 1)" }) (ruleset "Ruleset/Hujura (Ludii 2) (Reconstructed)" { "Variant/Hujura (Ludii 2)" }) (ruleset "Ruleset/Hujura (Ludii 3) (Reconstructed)" { "Variant/Hujura (Ludii 3)" }) (ruleset "Ruleset/Hujura (Ludii 4) (Reconstructed)" { "Variant/Hujura (Ludii 4)" }) (ruleset "Ruleset/Hujura (Ludii 5) (Reconstructed)" { "Variant/Hujura (Ludii 5)" }) (ruleset "Ruleset/Hujura (Ludii 6) (Reconstructed)" { "Variant/Hujura (Ludii 6)" }) (ruleset "Ruleset/Hujura (Ludii 7) (Reconstructed)" { "Variant/Hujura (Ludii 7)" }) (ruleset "Ruleset/Hujura (Ludii 8) (Reconstructed)" { "Variant/Hujura (Ludii 8)" }) (ruleset "Ruleset/Hujura (Ludii 9) (Reconstructed)" { "Variant/Hujura (Ludii 9)" }) (ruleset "Ruleset/Hujura (Ludii 10) (Reconstructed)" { "Variant/Hujura (Ludii 10)" }) (ruleset "Ruleset/Historical information (Incomplete)" { "Variant/Incomplete" }) }) //------------------------------------------------------------------------------ (metadata (info { (description "Hujura is an alignment game played in seventeenth century Persia with six pieces per player.") (aliases {"Hugjure"}) (useFor "Ruleset/Historical information (Incomplete)" (rules "3x3 lines with diagonals, six pieces per player.")) (useFor "Ruleset/Historical information (Incomplete)" (source "DLP evidence.")) (useFor "Ruleset/Historical information (Incomplete)" (id "1370")) (useFor "Ruleset/Hujura (Ludii 1) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step adjacent then if a player places 3 of their pieces in an north direction line, a player places 3 of their pieces in an south direction line, a player places 3 of their pieces in an east direction line or a player places 3 of their pieces in an west direction line, move again. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If the number of pieces owned by Player the next player is less than or equal to 2, the moving player wins. ")) (useFor "Ruleset/Hujura (Ludii 1) (Reconstructed)" (id "3279")) (useFor "Ruleset/Hujura (Ludii 2) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step adjacent then if a player places 3 of their pieces in an orthogonal direction line, move again. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If the number of pieces owned by Player the next player is less than or equal to 2, the moving player wins. ")) (useFor "Ruleset/Hujura (Ludii 2) (Reconstructed)" (id "3280")) (useFor "Ruleset/Hujura (Ludii 3) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers if 3 is equal to the number of pieces owned by Player the moving player, from vertex in the location of the piece to vertex in the set of empty vertexs moveRule: true, else step adjacent. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If the number of pieces owned by Player the next player is less than or equal to 2, the moving player wins. ")) (useFor "Ruleset/Hujura (Ludii 3) (Reconstructed)" (id "3281")) (useFor "Ruleset/Hujura (Ludii 4) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step adjacent then if a player places 3 of their pieces in an adjacent direction line, move again. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If the number of pieces owned by Player the next player is less than or equal to 2, the moving player wins. ")) (useFor "Ruleset/Hujura (Ludii 4) (Reconstructed)" (id "3282")) (useFor "Ruleset/Hujura (Ludii 5) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step adjacent then if a player places 3 of their pieces in an north direction line, a player places 3 of their pieces in an south direction line, a player places 3 of their pieces in an east direction line or a player places 3 of their pieces in an west direction line, move again. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If there are no pieces owned by Player the next player, the next player loses. ")) (useFor "Ruleset/Hujura (Ludii 5) (Reconstructed)" (id "3283")) (useFor "Ruleset/Hujura (Ludii 6) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers if 3 is equal to the number of pieces owned by Player the moving player, from vertex in the location of the piece to vertex in the set of empty vertexs moveRule: true, else step adjacent. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If there are no pieces owned by Player the next player, the next player loses. ")) (useFor "Ruleset/Hujura (Ludii 6) (Reconstructed)" (id "3284")) (useFor "Ruleset/Hujura (Ludii 7) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step adjacent then if a player places 3 of their pieces in an orthogonal direction line, move again. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If there are no pieces owned by Player the next player, the next player loses. ")) (useFor "Ruleset/Hujura (Ludii 7) (Reconstructed)" (id "3285")) (useFor "Ruleset/Hujura (Ludii 8) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step adjacent then if a player places 3 of their pieces in an adjacent direction line, move again. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If there are no pieces owned by Player the next player, the next player loses. ")) (useFor "Ruleset/Hujura (Ludii 8) (Reconstructed)" (id "3286")) (useFor "Ruleset/Hujura (Ludii 9) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step adjacent then if not in the same turn and a player places 3 of their pieces in an adjacent direction line, move again, else if the next player cannot move, move again and set pending. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If there are no pieces owned by Player the next player, the next player loses. ")) (useFor "Ruleset/Hujura (Ludii 9) (Reconstructed)" (id "3287")) (useFor "Ruleset/Hujura (Ludii 10) (Reconstructed)" (rules "The game Hujura is played by two players on a 3x3 rectangle board with square tiling. All players play with Markers. Rules for Pieces: Markers step orthogonal then if a player places 3 of their pieces in an orthogonal direction line, move again. Players take turns moving. Rules: If in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else from vertex in Player the moving player's hand site 0 to vertex in the set of empty vertexs moveRule: true then if a player places 3 of their pieces in an orthogonal direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else move one of your pieces. Aim: If there are no pieces owned by Player the next player, the next player loses. ")) (useFor "Ruleset/Hujura (Ludii 10) (Reconstructed)" (id "3288")) (source "Murray 1951: 41.") (version "1.3.12") (classification "board/space/line/reconstruction/done") (credit "Eric Piette") (origin "This game was played in Persia, around 1694.") } ) (recon { (concept "NumStartComponents" 12) }) )