I'm coding a slot machine in Python and have most of the code except from the method to check the results and edit the users credit.
Here is my current code:
I want to make another method within the fruit class called check for example. I'm just looking for some guidance on how to structure the if statements since I don't want a massive list of them. These are the variations of results I wish to check for:
- Two slots are the same
- Two slots are skulls
- Three slots are the same
- Three slots are bells
- Three slots are skulls
The positions of the results do not matter so it can be any of the variations in any slot(s)
Aucun commentaire:
Enregistrer un commentaire