SItes Problems - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5) +--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6) +--- Thread: SItes Problems (/showthread.php?tid=714) |
SItes Problems - RocWang - 09-17-2021 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? RE: SItes Problems - Eric Piette - 09-17-2021 Hi, You have an (expand ...) in your Region Function. Which is expanding your top or bottom line to the next one. Just remove it and that will work. Regards, Eric RE: SItes Problems - RocWang - 09-17-2021 That's work! Thank you! |