I am currently using python and have an assignment for Uni. this one really has me stumped. I have to create a dice game called three or more. basically the two players roll 5 dice at a time and if two of the dice are the same that gives them three points (double) if three that gives them 6 points (treble) if 4 that will give them 12 points. I have generated a random list /array using the random dice created. i Have been able to add them to the list and can cunt the items in the list. But what i need to do is count the amount of times a number shows up (e.g the 5 dice rolled contains two doubles) then i need to use that to create a score. I just can't seem to count then use the results of the count. Any help or advice would be MASSIVELY appreciated! Many thanks people1
Kind regards, Rob. :)
Aucun commentaire:
Enregistrer un commentaire