ichabod801 / t_games

A collection of command-line interface games written in Python.
GNU General Public License v3.0
20 stars 4 forks source link

Bug in Crazy Eights based on cards.py update. #555

Closed ichabod801 closed 4 years ago

ichabod801 commented 4 years ago

The bug is:

  File "C:\Users\Craig\Documents\t_games\card_games\crazy_eights_game.py", line 659, in player_action
    return self.validate_card(player, move)
  File "C:\Users\Craig\Documents\t_games\card_games\crazy_eights_game.py", line 824, in validate_card
    self.play_card(player, card_text)
  File "C:\Users\Craig\Documents\t_games\card_games\crazy_eights_game.py", line 607, in play_card
    self.forced_draw += cards.Card.ranks.index(card_text[0].upper())
AttributeError: type object 'Card' has no attribute 'ranks'

Clearly left over from before I updated cards.py, need to have it get to the rank through the rank_set or something.

ichabod801 commented 4 years ago

It seems to be working now, but keep this issue open for a while to be sure.