-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgameManager.py
More file actions
78 lines (53 loc) · 1.27 KB
/
Copy pathgameManager.py
File metadata and controls
78 lines (53 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import card
import character
import simple
import pygame
import random
# actions
move = False
playScheme = False
attack = False
# players
player1 = simple.players["player"]
player2 = simple.players["player"]
def startGame():
print("Game Started")
# each player draws 7 cards
count = 0
while count < 7:
player1.deck.draw()
player2.deck.draw()
count += 1
# while win conditions == false:
# player 1 goes first
playTurn(player1)
# player 2 goes second
playTurn(player2)
def playTurn(player):
# create menu with choices of what to do on turn
while True:
if move == True:
move=False
# do move action
moveAction(player)
return
if playScheme == True:
playScheme=False
# play scheme card
playSchemeAction(player)
return
if attack == True:
attack=False
# play attack card
attackAction(player)
return
def moveAction(player):
maxDistance = player.moveDistance
# code for choosing how many spaces to move
# draw a card
player.deck.draw()
return
def playSchemeAction(player):
return
def attackAction(player):
return