I found a better way of scripting this game :) It doubles the number of random games generated per second, and it's much easier to choose a given move. I also added an option to have the stack size shown as a number on top of the stack, thanks to the new pieceStackType.
09-26-2021, 05:07 PM (This post was last modified: 09-26-2021, 07:09 PM by Michael.)
Mihaw Zapawa found a mistake in my latest implementation of Lava. I though I had to simulate movement with (remove) and (add) because the movement happens in a consequence, but I forgot that I was dealing with mixed stacks, so that doesn't work. Luckily, it was very easy to fix it once I remembered (fromTo). I have attached a fixed version.
Edit: Oh, and I changed it so that the size 4 option is default, instead of size 5. I think that's a better way of introducing the game.