ProodjePindakaas / Quantum-Werewolf

The python script for running a game of Quantum Werewolf
MIT License
2 stars 0 forks source link

Can not play without cupid in cupid version #14

Closed UL-LIC-Robert closed 1 year ago

UL-LIC-Robert commented 1 year ago

When playing the version which includes cupid, if one decides to play without cupid: crash with following error:

Traceback (most recent call last):
  File "cli.py", line 149, in <module>
    g.start()
  File "/home/robert/Documents/Quantum-Werewolf-cupid/quantumwerewolf.py", line 99, in start
    self.calculate_probabilities()
  File "/home/robert/Documents/Quantum-Werewolf-cupid/quantumwerewolf.py", line 159, in calculate_probabilities
    player_probs['dead'] = self.death_probability(p)
  File "/home/robert/Documents/Quantum-Werewolf-cupid/quantumwerewolf.py", line 265, in death_probability
    cupid_id = p.index('cupid')
ValueError: tuple.index(x): x not in tuple