dgw / sopel-UnoBot

Play UNO on IRC with the help of your Sopel bot!
Other
3 stars 3 forks source link

With colors off, WD4 appears as just [W] #30

Closed dgw closed 7 years ago

dgw commented 7 years ago

Reconstructed IRC log to illustrate (since it happened to another player, not me):

<Yayaka> ;cards
-Kaede-: Your cards (4): G[6] R[4] R[S] [W]
<Yayaka> ;play w y
<Yayaka> ;play wd4 y
<Kaede> vil draws four and is skipped!

This is a pretty obvious bug in UnoGame.render_cards_nocolor(). The logic to handle WD4 cards differently from regular W cards is missing, and needs to be added. (I also now think that this method should be part of UnoBot, instead, but I need to think about what else would need refactoring with that and make another issue later.)