Some project cleanup
This commit is contained in:
13
venture/game.py
Normal file
13
venture/game.py
Normal file
@@ -0,0 +1,13 @@
|
||||
class Game:
|
||||
def __init__(self, code):
|
||||
self.code = code
|
||||
self.locked = True
|
||||
self.players = {}
|
||||
def add_contestant(self, sid, signature):
|
||||
self.players[sid] = Contestant(signature)
|
||||
|
||||
class Contestant:
|
||||
def __init__(self, signature):
|
||||
self.signature = signature
|
||||
self.points = 0
|
||||
|
||||
Reference in New Issue
Block a user