(define "CaptureToPiece"
(apply
(remove
(to)
)
)
)
(define "CaptureForwardDiagonal"
(move Step
(directions {FR FL})
(to
if:("IsEnemyAt" (to))
(apply (remove (to)))
)
)
)
//------------------------------------------------------------------------------
(game "Chaturanga (Payagunda)"
)
//------------------------------------------------------------------------------
(option "Variant" args:{ }
{
(item "Chaturanga (Payagunda) (Ludii 1)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(forEach Piece "FerznoCross"
(move Hop Forward
(between if:True)
(to if:
(is Empty
(to)
)
(apply
(remove
(to)
)
)
)
)
)
)
(end {
(if
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
)
)
)
)
)
)
(result Mover Win)
)
(if
(no Moves Next)
(result Mover Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 1) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 2)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(forEach Piece "FerznoCross"
(move Hop Forward
(between if:True)
(to if:
(is Empty
(to)
)
(apply
(remove
(to)
)
)
)
)
)
)
(end {
(if
(or
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
(forEach Piece)
)
)
)
)
)
)
(= 1
(count Pieces Next)
)
)
(result Mover Win)
)
(if
(=
(value Player P1)
64)
(result P1 Win)
)
(if
(=
(value Player P2)
64)
(result P2 Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 2) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 3)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(if
(can Move
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Mover
(+ 1
(value Player Mover)
)
)
(set Value Mover 0)
)
)
)
)
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Mover
(+ 1
(value Player Mover)
)
)
(set Value Mover 0)
)
)
)
(move Remove
(difference
(sites Occupied by:Next)
(sites Occupied by:Next component:"KingnoCross")
)
)
)
)
(end {
(if
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
)
)
)
)
)
)
(result Mover Win)
)
(if
(no Moves Next)
(result Mover Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 3) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 4)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(if
(can Move
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Mover
(+ 1
(value Player Mover)
)
)
(set Value Mover 0)
)
)
)
)
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Mover
(+ 1
(value Player Mover)
)
)
(set Value Mover 0)
)
)
)
(move Remove
(difference
(sites Occupied by:Next)
(sites Occupied by:Next component:"KingnoCross")
)
)
)
)
(end {
(if
(or
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
(forEach Piece)
)
)
)
)
)
)
(= 1
(count Pieces Next)
)
)
(result Mover Win)
)
(if
(=
(value Player P1)
64)
(result P1 Win)
)
(if
(=
(value Player P2)
64)
(result P2 Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 4) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 5)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(if
(is Prev Mover)
(move Promote
(last To)
(piece { "Knight" "Elephant" "Rook" "FerznoCross"}
)
Mover )
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(!=
(next)
(value Player Next)
)
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Next
(next)
)
)
)
)
)
)
)
(end {
(if
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
)
)
)
)
)
)
(result Mover Win)
)
(if
(no Moves Next)
(result Mover Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 5) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 6)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(forEach Piece "FerznoCross"
(move Hop Forward
(between if:True)
(to if:
(is Empty
(to)
)
(apply
(remove
(to)
)
)
)
)
)
)
(end {
(if
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
)
)
)
)
)
)
(result Mover Win)
)
(if
(no Moves Mover)
(result Mover Win)
)
(if
(=
(count Pieces Next)
1)
(result Mover Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 6) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 7)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(if
(can Move
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Mover
(+ 1
(value Player Mover)
)
)
(set Value Mover 0)
)
)
)
)
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Mover
(+ 1
(value Player Mover)
)
)
(set Value Mover 0)
)
)
)
(move Remove
(difference
(sites Occupied by:Next)
(sites Occupied by:Next component:"KingnoCross")
)
)
)
)
(end {
(if
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
)
)
)
)
)
)
(result Mover Win)
)
(if
(no Moves Mover)
(result Mover Win)
)
(if
(=
(count Pieces Next)
1)
(result Mover Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 7) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 8)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(if
(is Prev Mover)
(move Promote
(last To)
(piece { "Knight" "Elephant" "Rook" "FerznoCross"}
)
Mover )
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(!=
(next)
(value Player Next)
)
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Next
(next)
)
)
)
)
)
)
)
(end {
(if
(or
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
(forEach Piece)
)
)
)
)
)
)
(= 1
(count Pieces Next)
)
)
(result Mover Win)
)
(if
(=
(value Player P1)
64)
(result P1 Win)
)
(if
(=
(value Player P2)
64)
(result P2 Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 8) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 9)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(if
(is Prev Mover)
(move Promote
(last To)
(piece { "Knight" "Elephant" "Rook" "FerznoCross"}
)
Mover )
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(!=
(next)
(value Player Next)
)
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Next
(next)
)
)
)
)
)
)
)
(end {
(if
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
)
)
)
)
)
)
(result Mover Win)
)
(if
(no Moves Mover)
(result Mover Win)
)
(if
(=
(count Pieces Next)
1)
(result Mover Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 9) ruleset.")
(item "Chaturanga (Payagunda) (Ludii 10)" <
(players 2)
(equipment {
(board
(square 8)
)
(piece "Pawn" Each
(or
(move Step Forward
(to if:
(is Empty
(to)
)
)
)
(move Step
(directions { FR FL}
)
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
(then
(if
(is In
(last To)
(sites Mover "Promotion")
)
(moveAgain)
)
)
)
)
(piece "Rook" Each
(move Slide Orthogonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "KingnoCross" Each
(move Step
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Elephant" Each
(move Slide Diagonal
(to if:
(is Enemy
(who at:
(to)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "Knight" Each
(move Leap { { F F R F}
{ F F L F}
}
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(piece "FerznoCross" Each
(move Hop Diagonal
(between if:True)
(to if:
(not
(is Friend
(who at:
(to)
)
)
)
(apply
(remove
(to)
)
)
)
)
)
(regions "Promotion" P1
(sites Top)
)
(regions "Promotion" P2
(sites Bottom)
)
}
)
(rules
(start {
(place "Pawn1"
(sites Row 1)
)
(place "Pawn2"
(sites Row 6)
)
(place "FerznoCross1" { "A1" "H1"}
)
(place "Knight1" { "B1" "G1"}
)
(place "Rook1" { "C1" "F1"}
)
(place "KingnoCross1" coord:"D1")
(place "Elephant1" coord:"E1")
(place "FerznoCross2" { "A8" "H8"}
)
(place "Knight2" { "B8" "G8"}
)
(place "Rook2" { "C8" "F8"}
)
(place "KingnoCross2" coord:"E8")
(place "Elephant2" coord:"D8")
}
)
(play
(if
(is Prev Mover)
(move Promote
(last To)
(piece { "Knight" "Elephant" "Rook" "FerznoCross"}
)
Mover )
(do
(forEach Piece)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Mover)
)
)
(then
(if
(!=
(next)
(value Player Next)
)
(if
(is Threatened
(id "KingnoCross" Next)
)
(set Value Next
(next)
)
)
)
)
)
)
)
(end {
(if
(and
(is Threatened
(id "KingnoCross" Next)
)
(not
(can Move
(do
(forEach Piece Next)
ifAfterwards:
(not
(is Threatened
(id "KingnoCross" Next)
)
)
)
)
)
)
(result Mover Win)
)
(if
(=
(count Pieces Next)
1)
(result Mover Win)
)
(if
(no Moves Next)
(result Mover Win)
)
}
)
)
> "The Chaturanga (Payagunda) (Ludii 10) ruleset.")
(item "Incomplete"
<
(players 2)
(equipment {
(board (square 8))
(piece "Pawn" Each // Padati
(or
"StepForwardToEmpty"
"CaptureForwardDiagonal"
(then
(if (is In (last To) (sites Mover "Promotion"))
(moveAgain)
)
)
)
)
(piece "Rook" Each // Dvipa
(move
Slide
Orthogonal
(to
if:("IsEnemyAt" (to))
"CaptureToPiece"
)
)
)
(piece "King_noCross" Each // Raja
(move
Step
(to
if:(not ("IsFriendAt" (to)))
"CaptureToPiece"
)
)
)
(piece "Elephant" Each // Mantri
(move
Slide
Diagonal
(to
if:("IsEnemyAt" (to))
"CaptureToPiece"
)
)
)
(piece "Knight" Each // Turaja
(move
Leap
"KnightWalk"
(to
if:(not ("IsFriendAt" (to)))
"CaptureToPiece"
)
)
)
(piece "Ferz_noCross" Each // Ratha
(move Hop Diagonal
(between if:True)
(to if:(not ("IsFriendAt" (to))) (apply (remove (to))))
)
)
(regions "Promotion" P1 (sites Top))
(regions "Promotion" P2 (sites Bottom))
})
(rules
(start {
(place "Pawn1" (sites Row 1))
(place "Pawn2" (sites Row 6))
(place "Ferz_noCross1" {"A1" "H1"}) (place "Knight1" {"B1" "G1"}) (place "Rook1" {"C1" "F1"}) (place "King_noCross1" coord:"D1") (place "Elephant1" coord:"E1")
(place "Ferz_noCross2" {"A8" "H8"}) (place "Knight2" {"B8" "G8"}) (place "Rook2" {"C8" "F8"}) (place "King_noCross2" coord:"E8") (place "Elephant2" coord:"D8")
})
(play [(forEach Piece) | #])
(end [#])
)
>
"The incomplete ruleset."
)
})
//------------------------------------------------------------------------------
(rulesets {
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 1) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 1)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 2) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 2)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 3) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 3)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 4) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 4)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 5) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 5)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 6) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 6)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 7) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 7)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 8) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 8)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 9) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 9)"
})
(ruleset "Ruleset/Chaturanga (Payagunda) (Ludii 10) (Reconstructed)" {
"Variant/Chaturanga (Payagunda) (Ludii 10)"
})
(ruleset "Ruleset/Historical Information (Incomplete)" {
"Variant/Incomplete"
})
})
//------------------------------------------------------------------------------
(metadata
(info
{
(description "Chaturanga is the name of a replacement capture game from India. This particular version was played in the early eighteenth century, and shows movement from the older version of the game toward the modern version.")
(useFor "Ruleset/Historical Information (Incomplete)" (rules "8x8 board. Ratha start on the corers, with the Turaja next to them and the Dvipa next to the Horses. The Raja and Mantri are in the center. Ratha jump diagonally to the second space; Turaja move orthogonally one space and then diagonally another space, jumping over any intervening pieces; Dvipa moves orthogonally any distance; Mantri moves diagonally any distance; Raja moves one space orthogonally or diagonally, Padati move forward orthogonally one square or forward diagonally to capture."))
(useFor "Ruleset/Historical Information (Incomplete)" (source "DLP evidence."))
(useFor "Ruleset/Historical Information (Incomplete)" (id "1447"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 1) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
Move one of your pieces.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces, the moving player wins If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 1) (Reconstructed)" (id "2974"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 2) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
Move one of your pieces.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces or 1 is equal to the number of pieces owned by Player the next player, the moving player wins If the value of Player 1 is equal to 64, player one wins If the value of Player 2 is equal to 64, player two wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 2) (Reconstructed)" (id "2975"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 3) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
If can move move one of your pieces then if KingnoCross of the next player is threatened, set the value of Player the moving player to add the following values: [1,the value of Player the moving player], else set the value of Player the moving player to 0, move one of your pieces then if KingnoCross of the next player is threatened, set the value of Player the moving player to add the following values: [1,the value of Player the moving player], else set the value of Player the moving player to 0, else remove pieces at the difference between sites occupied by any component owned by Next and sites occupied by any component owned by Next.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces, the moving player wins If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 3) (Reconstructed)" (id "2976"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 4) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
If can move move one of your pieces then if KingnoCross of the next player is threatened, set the value of Player the moving player to add the following values: [1,the value of Player the moving player], else set the value of Player the moving player to 0, move one of your pieces then if KingnoCross of the next player is threatened, set the value of Player the moving player to add the following values: [1,the value of Player the moving player], else set the value of Player the moving player to 0, else remove pieces at the difference between sites occupied by any component owned by Next and sites occupied by any component owned by Next.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces or 1 is equal to the number of pieces owned by Player the next player, the moving player wins If the value of Player 1 is equal to 64, player one wins If the value of Player 2 is equal to 64, player two wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 4) (Reconstructed)" (id "2977"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 5) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
If in the same turn, a piece of the moving player the to location of the last move, this piece can promote into Knight, Elephant, Rook or FerznoCross, else move one of your pieces then if the next mover is not equal to the value of Player the next player, if KingnoCross of the next player is threatened, set the value of Player the next player to the next mover.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces, the moving player wins If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 5) (Reconstructed)" (id "2978"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 6) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
Move one of your pieces.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces, the moving player wins If the moving player cannot move, the moving player wins If the number of pieces owned by Player the next player is equal to 1, the moving player wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 6) (Reconstructed)" (id "2979"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 7) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
If can move move one of your pieces then if KingnoCross of the next player is threatened, set the value of Player the moving player to add the following values: [1,the value of Player the moving player], else set the value of Player the moving player to 0, move one of your pieces then if KingnoCross of the next player is threatened, set the value of Player the moving player to add the following values: [1,the value of Player the moving player], else set the value of Player the moving player to 0, else remove pieces at the difference between sites occupied by any component owned by Next and sites occupied by any component owned by Next.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces, the moving player wins If the moving player cannot move, the moving player wins If the number of pieces owned by Player the next player is equal to 1, the moving player wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 7) (Reconstructed)" (id "2980"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 8) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
If in the same turn, a piece of the moving player the to location of the last move, this piece can promote into Knight, Elephant, Rook or FerznoCross, else move one of your pieces then if the next mover is not equal to the value of Player the next player, if KingnoCross of the next player is threatened, set the value of Player the next player to the next mover.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces or 1 is equal to the number of pieces owned by Player the next player, the moving player wins If the value of Player 1 is equal to 64, player one wins If the value of Player 2 is equal to 64, player two wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 8) (Reconstructed)" (id "2981"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 9) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
If in the same turn, a piece of the moving player the to location of the last move, this piece can promote into Knight, Elephant, Rook or FerznoCross, else move one of your pieces then if the next mover is not equal to the value of Player the next player, if KingnoCross of the next player is threatened, set the value of Player the next player to the next mover.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces, the moving player wins If the moving player cannot move, the moving player wins If the number of pieces owned by Player the next player is equal to 1, the moving player wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 9) (Reconstructed)" (id "2982"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 10) (Reconstructed)" (rules "The game Chaturanga (Payagunda) is played by two players on a 8x8 rectangle board with square tiling.
Regions:
Promotion: the top sites of the board for P1
Promotion: the bottom sites of the board for P2
All players play with Pawns, Rooks, KingnoCrosses, Elephants, Knights and FerznoCrosses.
Rules for Pieces:
Elephants slide from the location of the piece in the diagonal direction through [between] is in the set of empty cells.
FerznoCrosses hop diagonal.
KingnoCrosses remove pieces at to then step adjacent.
Knights leap a piece to not is a friend.
Pawns step forward or remove pieces at to then step forward-right or forward-left if the to location of the last move is in Promotion or Promotion, move again.
Rooks slide from the location of the piece in the orthogonal direction through [between] is in the set of empty cells.
Players take turns moving.
Setup:
Place a Pawn for player one at each cell of the 1 row.
Place a Pawn for player two at each cell of the 6 row.
Place a FerznoCross for player one on sites: A1 and H1.
Place a Knight for player one on sites: B1 and G1.
Place a Rook for player one on sites: C1 and F1.
Place a KingnoCross for player one on site D1.
Place a Elephant for player one on site E1.
Place a FerznoCross for player two on sites: A8 and H8.
Place a Knight for player two on sites: B8 and G8.
Place a Rook for player two on sites: C8 and F8.
Place a KingnoCross for player two on site E8.
Place a Elephant for player two on site D8..
Rules:
If in the same turn, a piece of the moving player the to location of the last move, this piece can promote into Knight, Elephant, Rook or FerznoCross, else move one of your pieces then if the next mover is not equal to the value of Player the next player, if KingnoCross of the next player is threatened, set the value of Player the next player to the next mover.
Aim:
If KingnoCross of the next player is threatened and not can move move one of your pieces, the moving player wins If the number of pieces owned by Player the next player is equal to 1, the moving player wins If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Chaturanga (Payagunda) (Ludii 10) (Reconstructed)" (id "2983"))
(source "Murray 1913: 66-67.")
(version "1.3.9")
(classification "board/war/replacement/checkmate/chaturanga/reconstruction/done")
(credit "Eric Piette")
(origin "This game was played in India, from around 1700 to 1750.")
}
)
(graphics {
(board Colour Phase0 (colour 223 178 110))
(board Colour InnerEdges (colour Black))
(board Colour OuterEdges (colour Black))
})
)