Skip to content
Snippets Groups Projects
Commit f9a7a4f3 authored by Jakob Kirsch's avatar Jakob Kirsch
Browse files

auto generated by makefile

parent 0b606ddf
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,8 @@ def compare_cards(card1, card2):
if card2[0] == "+4":
OVERFLOW += 4
return True
elif WANTED_COLOR != "NEUTRAL":
return True
elif WANTED_COLOR != "NEUTRAL" and card2[1] != "NEUTRAL":
ret = card2[1] == WANTED_COLOR
if ret:
WANTED_COLOR = "NEUTRAL"
......@@ -122,6 +123,7 @@ while len(PLAYERS) > 1:
clear()
if len(PCARDS[player]) == 0:
del(PCARDS[player])
PLAYERS.remove(player)
print("\033[1;30;40m" + player + " hat gewonnen!")
if STACK[::-1][0][0] == "R":
PLAYERS = PLAYERS[::-1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment