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

auto generated by makefile

parent 06aa4b44
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,8 @@ import random, time, atexit ...@@ -2,7 +2,8 @@ import random, time, atexit
#definitions #definitions
DEBUG = True DEBUG = False
CHEAT = False
COLOR_CODES = {"NEUTRAL" : "\033[1;37;40m", "BLUE" : "\033[1;34;40m", "GREEN" : "\033[1;32;40m", "RED" : "\033[1;31;40m", "YELLOW" : "\033[1;33;40m"} COLOR_CODES = {"NEUTRAL" : "\033[1;37;40m", "BLUE" : "\033[1;34;40m", "GREEN" : "\033[1;32;40m", "RED" : "\033[1;31;40m", "YELLOW" : "\033[1;33;40m"}
...@@ -91,7 +92,8 @@ while len(PLAYERS) > 1: ...@@ -91,7 +92,8 @@ while len(PLAYERS) > 1:
try: try:
card = int(input("Card: ")) card = int(input("Card: "))
except: except:
PCARDS[player][0] = ["+2", "NEUTRAL"] if CHEAT:
PCARDS[player][0] = ["+2", "NEUTRAL"]
if card > 0 and card < len(PCARDS[player]): if card > 0 and card < len(PCARDS[player]):
if not compare_cards(STACK[::-1][0], PCARDS[player][card - 1]): if not compare_cards(STACK[::-1][0], PCARDS[player][card - 1]):
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