Relative Content

Tag Archive for pythonnumpy

Exercise – Random Walk, Implement clumsiness

So, the exercise is centered around a game that will tell in which step of a building you will be. You throw a die 100x and if the number is less than or equal to 2, you fall one step (if you are in step 0, you will stay in step 0), if it is higher than 2 and less than or equal to 5, you climb one step. If the number is 6, you throw the die again and will climb the resulting number of steps.