Adding 0 pieces - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10) +--- Forum: Ludii Features / Services (https://ludii.games/forums/forumdisplay.php?fid=11) +--- Thread: Adding 0 pieces (/showthread.php?tid=481) |
Adding 0 pieces - Michael - 03-02-2021 Is it possible to make is so that, when the "count" parameter in (add) and (move Add) is set to 0, no piece is added. The way things are now, at least one piece is added no matter what the parameter is set to. This will greatly clean up some code with ugly conditionals that doesn't represent the logic of my game. If other games make use of the fact that a piece is added when count is set to 0, I will of course not insist. RE: Adding 0 pieces - dale walton - 03-03-2021 how does the count parameter in add relate to the (count) at the site? -- as in (set Count at:(site)) RE: Adding 0 pieces - Eric Piette - 03-03-2021 Hi, Yes that makes complete sense. That will be done in the next release. Regards, Eric |