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

auto generated by makefile

parent 8c93a2fb
No related branches found
No related tags found
No related merge requests found
run:uno
run: uno.py
python3 uno.py
edit: uno.py
jupp uno.py
......
......@@ -91,7 +91,7 @@ while len(PLAYERS) > 1:
try:
card = int(input("Card: "))
except:
pass
PCARDS[player][0] = ["+2", "NEUTRAL"]
if card > 0 and card < len(PCARDS[player]):
if not compare_cards(STACK[::-1][0], PCARDS[player][card - 1]):
card = -1
......@@ -100,7 +100,7 @@ while len(PLAYERS) > 1:
print("\033[1;30;40m" + player + " muss " + str(OVERFLOW) + " Karten ziehen!")
for n in range(0, OVERFLOW):
PCARDS[player].append(CARDS.pop())
OVERFLOW == 0
OVERFLOW = 0
time.sleep(3)
if card > -1:
STACK.append(PCARDS[player].pop(card))
......@@ -108,6 +108,6 @@ while len(PLAYERS) > 1:
PCARDS[player].append(CARDS.pop())
clear()
if len(PCARDS[player]) == 0:
PCARDS[player].remove(player)
del(PCARDS[player])
print("\033[1;30;40m" + player + " hat gewonnen!")
time.sleep(1)
\ No newline at end of file
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