Ludii Forum
count-parameter bug? - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Grammar Problems (https://ludii.games/forums/forumdisplay.php?fid=24)
+--- Thread: count-parameter bug? (/showthread.php?tid=261)

Pages: 1 2


RE: count-parameter bug? - Eric Piette - 11-27-2020

Hi,

Ok, that was not a problem in the logic but a problem in the UI. Matthew founds the cause and fixed it.
We will publish a new release soon, your problem should be fixed in it.

Regards,
Eric


RE: count-parameter bug? - Michael - 11-27-2020

Thank you so much! Seems to be working fine now :)


RE: count-parameter bug? - Michael - 12-05-2020

I have a different questsion about the count-parameter on (move <from> <to>):

Shouldn't it be true in general that, if count is set to "(min (value) (- (size Stack at:(from)) 1))", whatever stands in for "(value)", you cannot move an entire stack. The parameter function says "choose the smallest of the following: one less than the stack size at (from), or (value)". The result could never be bigger than the stack size at (from), right?

It sounds obvious, but this is not my experience. Before I post details, is it possible to explain whether my reasoning is faulty?


RE: count-parameter bug? - Eric Piette - 12-07-2020

Hi,

I would say that you are right to "The result could never be bigger than the stack size at (from), right?".

Regards,
Eric