(game "Eleven-Fang"
)
//------------------------------------------------------------------------------
(option "Variant" args:{ }
{
(item "Eleven-Fang (Ludii 1)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(or
(if
(= 1
(+
(count Cell at:
(handSite Mover)
)
(count Pieces Mover)
)
)
(move Hop
(between if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Empty
(to)
)
)
)
)
(move Slide
(then
(custodial
(from
(last To)
)
(between
(range 1
(count Rows)
)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(and
(remove
(between)
)
(fromTo
(from
(handSite Mover)
)
(to
(between)
)
)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
)
)
)
)
)
(hand Each)
}
)
(rules
(start {
(place "Marker" "Hand" count:16)
(place "Marker1"
(union
(sites Top)
(difference
(sites Right)
(sites Bottom)
)
)
)
(place "Marker2"
(union
(sites Bottom)
(difference
(sites Left)
(sites Top)
)
)
)
}
)
(play
(forEach Piece)
)
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
> "The Eleven-Fang (Ludii 1) ruleset.")
(item "Eleven-Fang (Ludii 2)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(or
(if
(= 1
(+
(count Cell at:
(handSite Mover)
)
(count Pieces Mover)
)
)
(move Hop
(between if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Empty
(to)
)
)
)
)
(move Slide
(then
(custodial
(from
(last To)
)
(between
(range 1
(count Rows)
)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(and
(remove
(between)
)
(fromTo
(from
(handSite Mover)
)
(to
(between)
)
)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
)
)
)
)
)
(hand Each)
}
)
(rules
(start
(place "Marker" "Hand" count:12)
)
phases:{
(phase "Placement"
(play
(move
(from
(handSite Mover)
)
(to
(if
(= 0
(count Pieces Mover in:
(sites Board)
)
)
(forEach
(sites Around
(centrePoint)
Orthogonal)
if:
(is Empty
(site)
)
)
(difference
(sites Board)
(centrePoint)
)
)
if:
(is Empty
(to)
)
)
(then
(if
(not
(is Prev Mover)
)
(moveAgain)
)
)
)
)
(nextPhase Mover
(is Empty
(handSite Mover)
)
"Capture")
)
(phase "Capture"
(play
(if
(is Prev Mover)
(or
(move Step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to)
W)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
E)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
N)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
S)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 S )
)
)
)
}
)
)
)
(then
(custodial
(from
(last To)
)
Orthogonal
(between
(max 1)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
(then
(if
(can Move
(step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to )
W )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
E )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
N )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
S )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 S )
)
)
)
}
)
)
)
)
)
(moveAgain)
)
)
)
)
)
(move Pass)
)
(forEach Piece)
)
)
)
}
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
> "The Eleven-Fang (Ludii 2) ruleset.")
(item "Eleven-Fang (Ludii 3)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(move Step Orthogonal
(to if:
(is Empty
(to)
)
)
(then
(custodial
(from
(last To)
)
Orthogonal
(between
(max 1)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
(then
(if
(can Move
(step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to )
W )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
E )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
N )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
S )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 S )
)
)
)
}
)
)
)
)
)
(moveAgain)
)
)
)
)
)
)
(hand Each)
}
)
(rules
(start {
(place "Marker" "Hand" count:16)
(place "Marker1"
(union
(sites Top)
(difference
(sites Right)
(sites Bottom)
)
)
)
(place "Marker2"
(union
(sites Bottom)
(difference
(sites Left)
(sites Top)
)
)
)
}
)
(play
(forEach Piece)
)
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
> "The Eleven-Fang (Ludii 3) ruleset.")
(item "Eleven-Fang (Ludii 4)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(move Step
(to if:
(is Empty
(to)
)
)
(then
(if
(is Line 3 if:
(= 1
(size Stack at:
(to)
)
)
)
(moveAgain)
)
)
)
)
(hand Each)
}
)
(rules
(start {
(place "Marker" "Hand" count:16)
(place "Marker1"
(union
(sites Top)
(difference
(sites Right)
(sites Bottom)
)
)
)
(place "Marker2"
(union
(sites Bottom)
(difference
(sites Left)
(sites Top)
)
)
)
}
)
(play
(forEach Piece)
)
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
> "The Eleven-Fang (Ludii 4) ruleset.")
(item "Eleven-Fang (Ludii 5)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(or
(if
(= 1
(+
(count Cell at:
(handSite Mover)
)
(count Pieces Mover)
)
)
(move Hop
(between if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Empty
(to)
)
)
)
)
(move Slide
(then
(custodial
(from
(last To)
)
(between
(range 1
(count Rows)
)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(and
(remove
(between)
)
(fromTo
(from
(handSite Mover)
)
(to
(between)
)
)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
)
)
)
)
)
(hand Each)
}
)
(rules
(start {
(place Stack "Marker1"
(handSite P1)
count:12)
(place Stack "Marker2"
(handSite P2)
count:12)
}
)
phases:{
(phase "Placement"
(play
(if
(is Prev Mover)
(move
(from
(handSite Mover)
)
(to
(forEach
(sites Occupied by:Next container:"Board")
if:
(=
(size Stack at:
(site)
)
1)
)
)
)
(if
(not
(all Sites
(sites Hand Mover)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
(move
(from
(handSite Mover)
)
(to
(sites Empty)
)
(then
(if
(is Line 3 if:
(= 1
(size Stack at:
(to)
)
)
)
(moveAgain)
)
)
)
)
(then
(if
(and
(not
(is Next Mover)
)
(and
(all Sites
(sites Hand P1)
if:
(= 0
(count Cell at:
(site)
)
)
)
(all Sites
(sites Hand P2)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
)
(and
(forEach Site
(forEach
(sites Occupied by:P1 container:"Board" )
if:
(=
(size Stack at:
(site)
)
2)
)
(and {
(remove
(site)
)
(remove
(site)
)
(add
(piece
(id "Marker" P1)
)
(to
(site)
)
)
}
)
)
(forEach Site
(forEach
(sites Occupied by:P2 container:"Board" )
if:
(=
(size Stack at:
(site)
)
2)
)
(and {
(remove
(site)
)
(remove
(site)
)
(add
(piece
(id "Marker" P2)
)
(to
(site)
)
)
}
)
)
)
)
)
)
)
(nextPhase
(and
(not
(is Next Mover)
)
(and
(all Sites
(sites Hand P1)
if:
(= 0
(count Cell at:
(site)
)
)
)
(all Sites
(sites Hand P2)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
)
"Movement" )
)
(phase "Movement"
(play
(if
(is Prev Mover)
(move Remove
(sites Occupied by:Enemy container:"Board")
)
(if
(>
(count Pieces Mover)
3)
(forEach Piece)
(move
(from
(sites Occupied by:Mover)
)
(to
(sites Empty)
)
)
)
)
)
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
}
)
> "The Eleven-Fang (Ludii 5) ruleset.")
(item "Eleven-Fang (Ludii 6)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(or
(if
(= 1
(+
(count Cell at:
(handSite Mover)
)
(count Pieces Mover)
)
)
(move Hop
(between if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Empty
(to)
)
)
)
)
(move Slide
(then
(custodial
(from
(last To)
)
(between
(range 1
(count Rows)
)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(and
(remove
(between)
)
(fromTo
(from
(handSite Mover)
)
(to
(between)
)
)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
)
)
)
)
)
(hand Each)
}
)
(rules
(start
(place "Marker" "Hand" count:24)
)
phases:{
(phase "Placement"
(play
(move
(from
(handSite Mover)
)
(to
(if
(no Pieces Mover in:
(sites Board)
)
(forEach
(sites Around
(centrePoint)
Orthogonal)
if:
(is Empty
(site)
)
)
(difference
(sites Board)
(centrePoint)
)
)
if:
(is Empty
(to)
)
)
(then
(if
(not
(is Prev Mover)
)
(moveAgain)
)
)
)
)
(nextPhase Mover
(is Empty
(handSite Mover)
)
"Capture")
)
(phase "Capture"
(play
(if
(is Prev Mover)
(or
(move Step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to)
W)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
E)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
N)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
S)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 S )
)
)
)
}
)
)
)
(then
(custodial
(from
(last To)
)
Orthogonal
(between
(max 1)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
(then
(if
(can Move
(step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to )
W )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
E )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
N )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
S )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 S )
)
)
)
}
)
)
)
)
)
(moveAgain)
)
)
)
)
)
(move Pass)
)
(forEach Piece)
)
)
)
}
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
> "The Eleven-Fang (Ludii 6) ruleset.")
(item "Eleven-Fang (Ludii 7)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(move Step Orthogonal
(to if:
(is Empty
(to)
)
)
(then
(custodial
(from
(last To)
)
Orthogonal
(between
(max 1)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
(then
(if
(can Move
(step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to )
W )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
E )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
N )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
S )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 S )
)
)
)
}
)
)
)
)
)
(moveAgain)
)
)
)
)
)
)
(hand Each)
}
)
(rules
(start {
(place Stack "Marker1"
(handSite P1)
count:12)
(place Stack "Marker2"
(handSite P2)
count:12)
}
)
phases:{
(phase "Placement"
(play
(if
(is Prev Mover)
(move
(from
(handSite Mover)
)
(to
(forEach
(sites Occupied by:Next container:"Board")
if:
(=
(size Stack at:
(site)
)
1)
)
)
)
(if
(not
(all Sites
(sites Hand Mover)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
(move
(from
(handSite Mover)
)
(to
(sites Empty)
)
(then
(if
(is Line 3 if:
(= 1
(size Stack at:
(to)
)
)
)
(moveAgain)
)
)
)
)
(then
(if
(and
(not
(is Next Mover)
)
(and
(all Sites
(sites Hand P1)
if:
(= 0
(count Cell at:
(site)
)
)
)
(all Sites
(sites Hand P2)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
)
(and
(forEach Site
(forEach
(sites Occupied by:P1 container:"Board" )
if:
(=
(size Stack at:
(site)
)
2)
)
(and {
(remove
(site)
)
(remove
(site)
)
(add
(piece
(id "Marker" P1)
)
(to
(site)
)
)
}
)
)
(forEach Site
(forEach
(sites Occupied by:P2 container:"Board" )
if:
(=
(size Stack at:
(site)
)
2)
)
(and {
(remove
(site)
)
(remove
(site)
)
(add
(piece
(id "Marker" P2)
)
(to
(site)
)
)
}
)
)
)
)
)
)
)
(nextPhase
(and
(not
(is Next Mover)
)
(and
(all Sites
(sites Hand P1)
if:
(= 0
(count Cell at:
(site)
)
)
)
(all Sites
(sites Hand P2)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
)
"Movement" )
)
(phase "Movement"
(play
(if
(is Prev Mover)
(move Remove
(sites Occupied by:Enemy container:"Board")
)
(if
(>
(count Pieces Mover)
3)
(forEach Piece)
(move
(from
(sites Occupied by:Mover)
)
(to
(sites Empty)
)
)
)
)
)
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
}
)
> "The Eleven-Fang (Ludii 7) ruleset.")
(item "Eleven-Fang (Ludii 8)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(move Step
(to if:
(is Empty
(to)
)
)
(then
(if
(is Line 3 if:
(= 1
(size Stack at:
(to)
)
)
)
(moveAgain)
)
)
)
)
(hand Each)
}
)
(rules
(start
(place "Marker" "Hand" count:12)
)
phases:{
(phase "Placement"
(play
(move
(from
(handSite Mover)
)
(to
(if
(= 0
(count Pieces Mover in:
(sites Board)
)
)
(forEach
(sites Around
(centrePoint)
Orthogonal)
if:
(is Empty
(site)
)
)
(difference
(sites Board)
(centrePoint)
)
)
if:
(is Empty
(to)
)
)
(then
(if
(not
(is Prev Mover)
)
(moveAgain)
)
)
)
)
(nextPhase Mover
(is Empty
(handSite Mover)
)
"Capture")
)
(phase "Capture"
(play
(if
(is Prev Mover)
(or
(move Step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to)
W)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
E)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
N)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
S)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 S )
)
)
)
}
)
)
)
(then
(custodial
(from
(last To)
)
Orthogonal
(between
(max 1)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
(then
(if
(can Move
(step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to )
W )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
E )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
N )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
S )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 S )
)
)
)
}
)
)
)
)
)
(moveAgain)
)
)
)
)
)
(move Pass)
)
(forEach Piece)
)
)
)
}
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
> "The Eleven-Fang (Ludii 8) ruleset.")
(item "Eleven-Fang (Ludii 9)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(move Step
(to if:
(is Empty
(to)
)
)
(then
(if
(is Line 3 if:
(= 1
(size Stack at:
(to)
)
)
)
(moveAgain)
)
)
)
)
(hand Each)
}
)
(rules
(start {
(place Stack "Marker1"
(handSite P1)
count:12)
(place Stack "Marker2"
(handSite P2)
count:12)
}
)
phases:{
(phase "Placement"
(play
(if
(is Prev Mover)
(move
(from
(handSite Mover)
)
(to
(forEach
(sites Occupied by:Next container:"Board")
if:
(=
(size Stack at:
(site)
)
1)
)
)
)
(if
(not
(all Sites
(sites Hand Mover)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
(move
(from
(handSite Mover)
)
(to
(sites Empty)
)
(then
(if
(is Line 3 if:
(= 1
(size Stack at:
(to)
)
)
)
(moveAgain)
)
)
)
)
(then
(if
(and
(not
(is Next Mover)
)
(and
(all Sites
(sites Hand P1)
if:
(= 0
(count Cell at:
(site)
)
)
)
(all Sites
(sites Hand P2)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
)
(and
(forEach Site
(forEach
(sites Occupied by:P1 container:"Board" )
if:
(=
(size Stack at:
(site)
)
2)
)
(and {
(remove
(site)
)
(remove
(site)
)
(add
(piece
(id "Marker" P1)
)
(to
(site)
)
)
}
)
)
(forEach Site
(forEach
(sites Occupied by:P2 container:"Board" )
if:
(=
(size Stack at:
(site)
)
2)
)
(and {
(remove
(site)
)
(remove
(site)
)
(add
(piece
(id "Marker" P2)
)
(to
(site)
)
)
}
)
)
)
)
)
)
)
(nextPhase
(and
(not
(is Next Mover)
)
(and
(all Sites
(sites Hand P1)
if:
(= 0
(count Cell at:
(site)
)
)
)
(all Sites
(sites Hand P2)
if:
(= 0
(count Cell at:
(site)
)
)
)
)
)
"Movement" )
)
(phase "Movement"
(play
(if
(is Prev Mover)
(move Remove
(sites Occupied by:Enemy container:"Board")
)
(if
(>
(count Pieces Mover)
3)
(forEach Piece)
(move
(from
(sites Occupied by:Mover)
)
(to
(sites Empty)
)
)
)
)
)
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
}
)
> "The Eleven-Fang (Ludii 9) ruleset.")
(item "Eleven-Fang (Ludii 10)" <
(players 2)
(equipment {
(board
(square 11)
use:Vertex)
(piece "Marker" Each
(move Step
(to if:
(is Empty
(to)
)
)
(then
(if
(is Line 3 if:
(= 1
(size Stack at:
(to)
)
)
)
(moveAgain)
)
)
)
)
(hand Each)
}
)
(rules
(start
(place "Marker" "Hand" count:24)
)
phases:{
(phase "Placement"
(play
(move
(from
(handSite Mover)
)
(to
(if
(no Pieces Mover in:
(sites Board)
)
(forEach
(sites Around
(centrePoint)
Orthogonal)
if:
(is Empty
(site)
)
)
(difference
(sites Board)
(centrePoint)
)
)
if:
(is Empty
(to)
)
)
(then
(if
(not
(is Prev Mover)
)
(moveAgain)
)
)
)
)
(nextPhase Mover
(is Empty
(handSite Mover)
)
"Capture")
)
(phase "Capture"
(play
(if
(is Prev Mover)
(or
(move Step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to)
W)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
E)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
N)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to)
S)
)
)
(is Friend
(who at:
(ahead
(to)
steps:2 S )
)
)
)
}
)
)
)
(then
(custodial
(from
(last To)
)
Orthogonal
(between
(max 1)
if:
(is Enemy
(who at:
(between)
)
)
(apply
(remove
(between)
)
)
)
(to if:
(is Friend
(who at:
(to)
)
)
)
(then
(if
(can Move
(step
(from
(last To)
)
Orthogonal
(to if:
(and
(is Empty
(to)
)
(or {
(and
(is Enemy
(who at:
(ahead
(to )
W )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 W )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
E )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 E )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
N )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 N )
)
)
)
(and
(is Enemy
(who at:
(ahead
(to )
S )
)
)
(is Friend
(who at:
(ahead
(to )
steps:2 S )
)
)
)
}
)
)
)
)
)
(moveAgain)
)
)
)
)
)
(move Pass)
)
(forEach Piece)
)
)
)
}
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
> "The Eleven-Fang (Ludii 10) ruleset.")
(item "Incomplete"
<
(players 2)
(equipment {
(board
(square 11)
use:Vertex
)
(piece "Marker" Each [#])
(hand Each)
})
(rules [#])
>
"The incomplete ruleset."
)
})
//------------------------------------------------------------------------------
(rulesets {
(ruleset "Ruleset/Eleven-Fang (Ludii 1) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 1)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 2) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 2)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 3) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 3)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 4) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 4)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 5) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 5)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 6) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 6)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 7) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 7)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 8) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 8)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 9) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 9)"
})
(ruleset "Ruleset/Eleven-Fang (Ludii 10) (Reconstructed)" {
"Variant/Eleven-Fang (Ludii 10)"
})
(ruleset "Ruleset/Historical Information (Incomplete)" {
"Variant/Incomplete"
})
})
//------------------------------------------------------------------------------
(metadata
(info
{
(description "Eleven-Fang is a game played in China. Though the game was described in the late twentieth century, it is likely to be much older, since a board belonging to it was found in a Tang Dynasty tomb, but which could date up to 1936.")
(useFor "Ruleset/Historical Information (Incomplete)" (rules "11x11 intersecting lines."))
(useFor "Ruleset/Historical Information (Incomplete)" (source "DLP evidence."))
(useFor "Ruleset/Historical Information (Incomplete)" (id "1138"))
(useFor "Ruleset/Eleven-Fang (Ludii 1) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 rectangle board with square tiling.
All players play with Markers.
Rules for Pieces:
Markers if 1 is equal to add the following values: [the total number of cell in Player the moving player's hand site 0,the number of pieces owned by Player the moving player], hop adjacent or slide from the location of the piece in the adjacent direction through [between] is in the set of empty vertexs then for all flanked pieces on Vertexes starting from the to location of the last move with Adjacent direction with a limit of the number of Vertex rows pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between and from vertex in Player the moving player's hand site 0 to vertex between moveRule: true.
Players take turns moving.
Setup:
Place a Marker for player one at the union of the top sites of the board and the difference between the right sites of the board and the bottom sites of the board.
Place a Marker for player two at the union of the bottom sites of the board and the difference between the left sites of the board and the top sites of the board..
Rules:
Move one of your pieces.
Aim:
If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 1) (Reconstructed)" (id "3311"))
(useFor "Ruleset/Eleven-Fang (Ludii 2) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 rectangle board with square tiling.
All players play with Markers.
Rules for Pieces:
Markers if 1 is equal to add the following values: [the total number of cell in Player the moving player's hand site 0,the number of pieces owned by Player the moving player], hop adjacent or slide from the location of the piece in the adjacent direction through [between] is in the set of empty vertexs then for all flanked pieces on Vertexes starting from the to location of the last move with Adjacent direction with a limit of the number of Vertex rows pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between and from vertex in Player the moving player's hand site 0 to vertex between moveRule: true.
Players take turns moving.
Rules:
From vertex in Player the moving player's hand site 0 to vertex in if 0 is equal to the number of pieces in the region the sites of the board moveRule: empty then if not in the same turn, move again if in the same turn, step orthogonal then for all flanked pieces on Vertexes starting from the to location of the last move with Orthogonal direction with a limit of 1 pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between then if can move step orthogonal, move again or pass, else move one of your pieces.
Aim:
If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 2) (Reconstructed)" (id "3312"))
(useFor "Ruleset/Eleven-Fang (Ludii 3) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 rectangle board with square tiling.
All players play with Markers.
Rules for Pieces:
Markers step orthogonal then for all flanked pieces on Vertexes starting from the to location of the last move with Orthogonal direction with a limit of 1 pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between then if can move step orthogonal, move again.
Players take turns moving.
Setup:
Place a Marker for player one at the union of the top sites of the board and the difference between the right sites of the board and the bottom sites of the board.
Place a Marker for player two at the union of the bottom sites of the board and the difference between the left sites of the board and the top sites of the board..
Rules:
Move one of your pieces.
Aim:
If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 3) (Reconstructed)" (id "3313"))
(useFor "Ruleset/Eleven-Fang (Ludii 4) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 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.
Setup:
Place a Marker for player one at the union of the top sites of the board and the difference between the right sites of the board and the bottom sites of the board.
Place a Marker for player two at the union of the bottom sites of the board and the difference between the left sites of the board and the top sites of the board..
Rules:
Move one of your pieces.
Aim:
If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 4) (Reconstructed)" (id "3314"))
(useFor "Ruleset/Eleven-Fang (Ludii 5) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 rectangle board with square tiling.
All players play with Markers.
Rules for Pieces:
Markers if 1 is equal to add the following values: [the total number of cell in Player the moving player's hand site 0,the number of pieces owned by Player the moving player], hop adjacent or slide from the location of the piece in the adjacent direction through [between] is in the set of empty vertexs then for all flanked pieces on Vertexes starting from the to location of the last move with Adjacent direction with a limit of the number of Vertex rows pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between and from vertex in Player the moving player's hand site 0 to vertex between moveRule: true.
Players take turns moving.
Setup:
Place stack of [Marker1] at vertex Player 1's hand site 0
Place stack of [Marker2] at vertex Player 2's hand site 0.
Rules:
If in the same turn, from vertex in Player the moving player's hand site 0 to vertex in the size of the stack on vertex current site is equal to 1 sites occupied by any component owned by Next in Board moveRule: true, else if not all sites in the sites in Player the moving player's hand satisfy the condition 0 is equal to the total number of cell in current site, 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 adjacent direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else if the number of pieces owned by Player the moving player is greater than 3, move one of your pieces, else from vertex in sites occupied by any component owned by Mover to vertex in the set of empty vertexs moveRule: true.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 5) (Reconstructed)" (id "3315"))
(useFor "Ruleset/Eleven-Fang (Ludii 6) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 rectangle board with square tiling.
All players play with Markers.
Rules for Pieces:
Markers if 1 is equal to add the following values: [the total number of cell in Player the moving player's hand site 0,the number of pieces owned by Player the moving player], hop adjacent or slide from the location of the piece in the adjacent direction through [between] is in the set of empty vertexs then for all flanked pieces on Vertexes starting from the to location of the last move with Adjacent direction with a limit of the number of Vertex rows pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between and from vertex in Player the moving player's hand site 0 to vertex between moveRule: true.
Players take turns moving.
Rules:
From vertex in Player the moving player's hand site 0 to vertex in if there are no pieces owned by Player the moving player of the sites of the board moveRule: empty then if not in the same turn, move again if in the same turn, step orthogonal then for all flanked pieces on Vertexes starting from the to location of the last move with Orthogonal direction with a limit of 1 pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between then if can move step orthogonal, move again or pass, else move one of your pieces.
Aim:
If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 6) (Reconstructed)" (id "3316"))
(useFor "Ruleset/Eleven-Fang (Ludii 7) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 rectangle board with square tiling.
All players play with Markers.
Rules for Pieces:
Markers step orthogonal then for all flanked pieces on Vertexes starting from the to location of the last move with Orthogonal direction with a limit of 1 pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between then if can move step orthogonal, move again.
Players take turns moving.
Setup:
Place stack of [Marker1] at vertex Player 1's hand site 0
Place stack of [Marker2] at vertex Player 2's hand site 0.
Rules:
If in the same turn, from vertex in Player the moving player's hand site 0 to vertex in the size of the stack on vertex current site is equal to 1 sites occupied by any component owned by Next in Board moveRule: true, else if not all sites in the sites in Player the moving player's hand satisfy the condition 0 is equal to the total number of cell in current site, 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 adjacent direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else if the number of pieces owned by Player the moving player is greater than 3, move one of your pieces, else from vertex in sites occupied by any component owned by Mover to vertex in the set of empty vertexs moveRule: true.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 7) (Reconstructed)" (id "3317"))
(useFor "Ruleset/Eleven-Fang (Ludii 8) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 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:
From vertex in Player the moving player's hand site 0 to vertex in if 0 is equal to the number of pieces in the region the sites of the board moveRule: empty then if not in the same turn, move again if in the same turn, step orthogonal then for all flanked pieces on Vertexes starting from the to location of the last move with Orthogonal direction with a limit of 1 pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between then if can move step orthogonal, move again or pass, else move one of your pieces.
Aim:
If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 8) (Reconstructed)" (id "3318"))
(useFor "Ruleset/Eleven-Fang (Ludii 9) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 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.
Setup:
Place stack of [Marker1] at vertex Player 1's hand site 0
Place stack of [Marker2] at vertex Player 2's hand site 0.
Rules:
If in the same turn, from vertex in Player the moving player's hand site 0 to vertex in the size of the stack on vertex current site is equal to 1 sites occupied by any component owned by Next in Board moveRule: true, else if not all sites in the sites in Player the moving player's hand satisfy the condition 0 is equal to the total number of cell in current site, 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 adjacent direction line, move again if in the same turn, remove pieces at sites occupied by any component owned by Enemy in Board, else if the number of pieces owned by Player the moving player is greater than 3, move one of your pieces, else from vertex in sites occupied by any component owned by Mover to vertex in the set of empty vertexs moveRule: true.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 9) (Reconstructed)" (id "3319"))
(useFor "Ruleset/Eleven-Fang (Ludii 10) (Reconstructed)" (rules "The game Eleven-Fang is played by two players on a 11x11 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:
From vertex in Player the moving player's hand site 0 to vertex in if there are no pieces owned by Player the moving player of the sites of the board moveRule: empty then if not in the same turn, move again if in the same turn, step orthogonal then for all flanked pieces on Vertexes starting from the to location of the last move with Orthogonal direction with a limit of 1 pieces if the target is there is an enemy Player at between if the friend is is a friendremove pieces at between then if can move step orthogonal, move again or pass, else move one of your pieces.
Aim:
If the next player cannot move, the moving player wins.
"))
(useFor "Ruleset/Eleven-Fang (Ludii 10) (Reconstructed)" (id "3320"))
(version "1.3.12")
(classification "board/war/reconstruction/done")
(credit "Eric Piette")
(origin "This game was played in China, from around 680 to 1999.")
}
)
(graphics {
(show Edges Diagonal Hidden)
})
)