# Need help with moving pawn piece on board

**URL:** <https://community.thunkable.com/t/need-help-with-moving-pawn-piece-on-board/1316170>\
**Category:** Questions about Thunkable X\
**Created:** [May 30, 2021, 6:22am UTC](https://community.thunkable.com/t/need-help-with-moving-pawn-piece-on-board/1316170 "2021-05-30T06:22:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 30, 2021, 7:35am UTC](https://community.thunkable.com/t/need-help-with-moving-pawn-piece-on-board/1316170/4 "2021-05-30T07:35:58Z")

</div>

One way to do this, I think, is to create a list of the cell positions in the order you would reach them if traveling from 1 to 2 to 3, etc. all the way to 100:

91,92,93,94,95,96,97,98,99,100,90,89,87, etc.

You can do this with the `make list from text with delimiter ","` block.

When you start the game, you are at index=1 so you get list item #1’s value and use that for the cell number (91). When you shake and get a value, you take the current index (which would be 1 if you’re just starting the game) and add the shake value to it. Then you take the list item’s value at that new index.

Here’s an example. Let’s say you’re on #18 and you shake a 4. You should end up on #22, right? The way that would get calculated is to take the index where the player currently is (18) and add 4 to it to get an index of 22. Then you get the 22nd item from the list which is the value 72 and you move the pawn to that cell.

---

_[View the full topic](https://community.thunkable.com/t/need-help-with-moving-pawn-piece-on-board/1316170)._
