(game "Dara"
(mode 2)
(equipment
{
(board (rect 5 6) (square))
(hand Each)
(ball Each (step Orthogonal (and (in (to) (empty)) (not (line length:4 Orthogonal (to) what:(mover)))) (then (if (line length:3 Orthogonal true) (replay)))))
}
)
(rules
(start { (place "Ball1" "Hand1" count:12) (place "Ball2" "Hand2" count:12) })
(play
(if (ge (turn) 24)
(if (equal (previous) (mover))
(select (own (next) "Board") (then (remove (lastToMove))))
(byPiece)
)
(fromTo (hand (mover)) (empty) rule:(not (line length:3 Orthogonal (to) what:(mover))))
)
)
(end (and (equal (what (hand (mover))) 0) (equal (size (own (next))) 2)) (result Mover Win))
)
)
(metadata
{
"rules" "The board is empty in the beginning. Players take turn placing their stones onto the empty cells of the square board. This is known as Phase 1 of the game or the Drop phase.
After all 24 stones have been dropped, Phase 2 or the Move phase begins. Players will then take turns moving their pieces orthogonally into an adjacent empty cell.
Players attempt to make a three-in-a-row with their own pieces. The three-in-a-row must be orthogonal and not diagonal.
Furthermore, it must be strictly three pieces in a row, and not four or more pieces in a row; four or more pieces formed in-a-row are illegal.
If a three-in-a-row is made by a player, he or she can remove one enemy piece from the board which is not part of a three-in-a-row itself.
If a player can no longer make three-in-a-rows with their remaining pieces (e.g. if the player only has two pieces left), he or she is the loser, and the other player is the winner."
}
)