Very simple:
var rng = RandomNumberGenerator.new()
var player_square = 1
var dice_roll
var roll_positions = {1:Vector2(10,100), 2: Vector2(10,90),
3:Vector2(10,80)}
func ready():
rng.randomize()
player_turn()
func player_turn():
dice_roll = randi_range(1,6)
player_square += dice_roll
player.position = roll_positions[player_square]
The player_square holds the last place the player was positioned. Is it a dice role or a dice roll? I'm not sure which is which. I think it's roll. Filling in your own values for the dictionary is a little work, but then you can wind your positions on a path or whatever. It doesn't have to look like a grid. Plus, dictionaries come in handy for all kinds of things. I didn't test the code but you should get the idea.