07-09-2021, 05:41 AM
Hi,
The reason is because you are trying to set the local state to a really big value which is 1000000000, so if you open Ludii with a terminal you will see that error:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Chunk value 1000000000 is out of range for size = 8
at main.collections.ChunkSet.getAndSetChunk(ChunkSet.java:1437)
at other.state.zhash.HashedChunkSet.setChunk(HashedChunkSet.java:167)
at other.state.container.ContainerFlatState.setSite(ContainerFlatState.java:572)
at other.action.state.ActionSetState.apply(ActionSetState.java:121)
I really do not advise you to set the state to that value (which probably come from the Infinity value returned from the (count Steps ...) when no path exists between two sites).
But if you really want to set that value, in theory, you can, in modifying the maxState value in any of the piece of your game with
(piece "Disc" Each maxState:1000000001)
But that's really not recommended and will probably make all the computation of the legal moves much slower.
Regards,
Eric
The reason is because you are trying to set the local state to a really big value which is 1000000000, so if you open Ludii with a terminal you will see that error:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Chunk value 1000000000 is out of range for size = 8
at main.collections.ChunkSet.getAndSetChunk(ChunkSet.java:1437)
at other.state.zhash.HashedChunkSet.setChunk(HashedChunkSet.java:167)
at other.state.container.ContainerFlatState.setSite(ContainerFlatState.java:572)
at other.action.state.ActionSetState.apply(ActionSetState.java:121)
I really do not advise you to set the state to that value (which probably come from the Infinity value returned from the (count Steps ...) when no path exists between two sites).
But if you really want to set that value, in theory, you can, in modifying the maxState value in any of the piece of your game with
(piece "Disc" Each maxState:1000000001)
But that's really not recommended and will probably make all the computation of the legal moves much slower.
Regards,
Eric