Commits

larry committed 48af568

Bug fix: you didn't get credit for a coup fouree if you didn't have six
cards in your hand. You always do... unless the draw pile is empty!

  • Participants
  • Parent commits a522b12

Comments (0)

Files changed (1)

 ##
 ## TODO
 ##
-## if the draw pile is empty, you don't get credit for a coup fourre
+## need regression test to check that my fix worked for:
+##   if the draw pile is empty, you don't get credit for a coup fourre
 ##
 #
 # Copyright 2012 Larry Hastings
 		return (isinstance(last_card, Hazard)
 			and (last_card.safety is self)
 			and (last_playee is playee)
-			and (len(playee.hand.hand) == 6)
+			and ((len(playee.hand.hand) == 6) or not deck)
 			)
 
 	def is_legal(self, player, playee, silent=False):