Im trying code a simple dice roll game where the player is to roll a dice and they try to get it to land on a specific number to win. How do I get it to print “you won” when it lands on this number?
I tried save the secret number as a string in the variable total. I then tried to do an if statement where if int is equal to total, then it would print “you won”
Aucun commentaire:
Enregistrer un commentaire