I want to make python snake and ladder, I have the dice already
six_dice = random.randint(1, 6)
return six_dice
i also make the map function already
if number == 9:
return "oops you got bitten by snake, you fell into", 4
if number == 5:
return "nice, you found a ladder and walk yourself up, you are now at", 15
if number == 24:
return "oh no! a snake bit your ankle, you fell into", 13
if number == 12:
return "just what you needed! you climb up a ladder and found yourself at", 21
But I'm still stuck on how do you make the game knows that you are progressing, not keep at the same 6 number. And second, how do you make the snake_map noticeable by the code
Aucun commentaire:
Enregistrer un commentaire