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

auto generated by makefile

parent f9a7a4f3
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ def compare_cards(card1, card2):
OVERFLOW += 4
return True
return True
elif WANTED_COLOR != "NEUTRAL" and card2[1] != "NEUTRAL":
elif WANTED_COLOR != "NEUTRAL" and card2[1] != "NEUTRAL" and card2[0] != "+4":
ret = card2[1] == WANTED_COLOR
if ret:
WANTED_COLOR = "NEUTRAL"
......@@ -65,7 +65,7 @@ for color in COLORS:
CARDS.append(("+2", color))
CARDS.append(["C", "NEUTRAL"])
CARDS.append(["+4", "NEUTRAL"])
CARDS.append(["R", "NEUTRAL"])
CARDS.append(("R", color))
for n in range(0, 2):
CARDS.append(("X", color))
#players
......@@ -105,7 +105,8 @@ while len(PLAYERS) > 1:
card = int(input("Card: "))
except:
if CHEAT:
PCARDS[player][0] = ["+2", "NEUTRAL"]
for n in range(0, len(PCARDS[player])):
PCARDS[player][n] = ["+4", "NEUTRAL"]
if card > 0 and card < len(PCARDS[player]):
if not compare_cards(STACK[::-1][0], PCARDS[player][card - 1]):
card = -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