Hey!
you could use a grid (2-dimensional array) - like for a tile-based game - in which you use an number for your player possible movements.
Example for a 4x4 grid:
the possible direction (e.g. variable:
movDir) for your player are:
1 = move down
2 = move right
3 = move up
4 = move left
After you've rolled the dice, you check the current position of your player in the grid, get the next direction and move accordingly.
So, when the player starts in the top-left field, it will read the
movDir == 1 and you know that you must walk down.
Attention: You must move your player always only by 1 position and then check again the next direction, before your next move... otherwise the player will miss the corner. ;)