Ludii Forum
State at different levels - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About Ludii (https://ludii.games/forums/forumdisplay.php?fid=14)
+--- Thread: State at different levels (/showthread.php?tid=435)



State at different levels - slimy_asparagus - 02-13-2021

It looks like (state at:X level:Y) ignores the level. I attach a .lud file and a trial. You can step through the trial and use the Test Ludeme Dialog to inspect
Code:
(state at:10 level:0)
at various stages. It seems to take on the state of the top level.


RE: State at different levels - Eric Piette - 02-22-2021

Hi,

Thanks for reporting that. That should be fixed in the next release.

Regards,
Eric


RE: State at different levels - slimy_asparagus - 03-13-2021

(02-22-2021, 11:03 AM)Eric Piette Wrote: Hi,

Thanks for reporting that. That should be fixed in the next release.

Regards,
Eric

Eric,

I finally got round to trying this out and everything seems to be working fine. Thank you so much.

Nicholas


RE: State at different levels - slimy_asparagus - 03-30-2021

Eric,

I hope you are having a good holiday. When you get back you might like to observe that according to the 1.1.16 you cannot set Value or state at a specific site level. From the reference doc:

Code:
(set <setSiteType> [<siteType>] at:<int> <int> [<then>])
This also applies to Count but I suppose it does not make sense to set that at a level.

Nicholas


RE: State at different levels - slimy_asparagus - 04-06-2021

Just corrected a typo.


RE: State at different levels - Eric Piette - 04-06-2021

Hi,

Yes you are right, I will add that to my TODO.
And you are also right, no count can be set in a stack game, so the option will be available for State and Value.

Regards,
Eric


RE: State at different levels - Eric Piette - 04-12-2021

Hi,

In the next release it will be possible to set the State or the value at any level, that's now added.

Regards,
Eric