Commits

larry committed 494195c

Bugfix: if all we had was safeties at the end of the game,
don't directly compare the two arrays, as their ordering
may differ.

Comments (0)

Files changed (1)

 		# I give up!
 
 		# if all we have left is safeties, play them all.
-		if safeties == self.cards:
+		# (don't compare them directly, the ordering may
+		# be different.)
+		if len(safeties) == len(self.cards):
 			# note: if all we we have is safeties,
 			# then we have 4 or fewer cards in our hand,
 			# which means the deck is empty,