samedi 3 novembre 2018

random.choice() keeps returning the same value from a list

I have a code that tells whether or not Bots will stay in a poker game or not. I have a random.choice(LIST) code that has a chance for them to say YES or NO.

The problem that I have is that Bot 3 keeps folding. Every. Single. Time.

Chance = ['YES','YES','YES','YES','NO']
Bot1isIn = random.choice(Chance)
Bot2isIn = random.choice(Chance)
Bot3isIn = random.choice(Chance)

Bot 3 always returns NO. Why is this, and how can I fix it?




Aucun commentaire:

Enregistrer un commentaire