|
|
@ -36,9 +36,17 @@ function movePlayer(player, roll){ |
|
|
|
} |
|
|
|
//TODO Schlange oder Leiter fehlschalg.
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function resetNewOld(player){ |
|
|
|
// setzen newPostion auf position um und neuPosition leeren
|
|
|
|
player.position = player.newPosition; |
|
|
|
player.newPosition = 0; |
|
|
|
console.log("current position is" + player.position); |
|
|
|
|
|
|
|
|
|
|
|
console.log("new position" + player.newPosition); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|