09-17-2021, 02:31 PM
I want to put pieces only to the top or bottom line on the 10*10 borad with below codes:
(play
(if (is Mover P1)
(move
(from (handSite Mover))
( to ( expand ( sites Bottom) ) )
)
(move
(from (handSite Mover))
( to ( expand ( sites Top ) ) )
)
)
)
however, when I run the game, the piece can not only put on the first row but also the second.
then I try to use the absolute sites, like below, it's the same result:
(play
(if (is Mover P1)
(move
(from (handSite Mover))
( to ( expand ( sites {"A1" "B1" "C1" "D1" "E1" "F1" "G1" "H1" "I1" "J1"} ) ) )
)
(move
(from (handSite Mover))
( to ( expand ( sites Top ) ) )
)
)
)
Is this a bug or just my wrong usage?
(play
(if (is Mover P1)
(move
(from (handSite Mover))
( to ( expand ( sites Bottom) ) )
)
(move
(from (handSite Mover))
( to ( expand ( sites Top ) ) )
)
)
)
however, when I run the game, the piece can not only put on the first row but also the second.
then I try to use the absolute sites, like below, it's the same result:
(play
(if (is Mover P1)
(move
(from (handSite Mover))
( to ( expand ( sites {"A1" "B1" "C1" "D1" "E1" "F1" "G1" "H1" "I1" "J1"} ) ) )
)
(move
(from (handSite Mover))
( to ( expand ( sites Top ) ) )
)
)
)
Is this a bug or just my wrong usage?