-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskelett.py
More file actions
48 lines (39 loc) · 1.16 KB
/
skelett.py
File metadata and controls
48 lines (39 loc) · 1.16 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
import pygame
#Player Classes
class Player:
def make_move(self, piles):
"Makes a move based on the current game status, and updates the passed piles list."
pass
class RandomBot(Player):
"Computer Player making moves completely at random"
pass
class SmartBot(Player):
"Computer Player always making a winning move in case it's possible"
pass
class User(Player):
"User Player. Makes moves based on instructions from the user."
pass
#Gui Functions and classes
class GuiOption:
"Describes size, color and position of a GUI-button."
def draw(self):
"Draws itself."
pass
class Board:
"Describes the board"
def draw(self):
"Draws the board."
pass
def draw_menu(buttons):
"Draws the starting menu."
pass
#Functions that control game flow
def game(players, piles):
"""Starts and controls a game given the two player objects facing each other.
Returns the index of the winning player."""
pass
def main():
"""Interacts with user to start games in different game modes."""
pass
if __name__ == "__main__":
main()