In a board game app I’m making (Shakes and Adders), I want to move the user’s pawn piece/playing counter by the number the player shakes (if the player shakes 3 then he/she moves from 1 to 4). But my board game’s layout is slightly different, and I’m using the create and clone blocks to make it. This is what my board looks like:
Because of this layout, ‘cell 1’ is actually referenced as the 91st cell, and 99 is referenced as the 2nd cell.
So, it doesn’t act as expected when I shake the dice.
Here’s my code:
Any suggestions on how to move the pawn/counter correctly?
PS: I can share the project link in a PM if required.