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

added pib to cheatmode

parent 518154a7
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ import random, time, atexit ...@@ -4,6 +4,7 @@ import random, time, atexit
DEBUG = False DEBUG = False
CHEAT = False CHEAT = False
CODE = "1234" #Change me
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"}
...@@ -116,6 +117,8 @@ while len(PLAYERS) > 1: ...@@ -116,6 +117,8 @@ while len(PLAYERS) > 1:
card = int(input("Card: ")) card = int(input("Card: "))
except: except:
if CHEAT: if CHEAT:
if input("Code: ") != CODE:
continue
PCARDS[player][0] = [input("Type: "), input("Color: ")] PCARDS[player][0] = [input("Type: "), input("Color: ")]
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]):
......
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