-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.py
40 lines (26 loc) · 859 Bytes
/
game.py
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
from player import Player
from cards import Cards
class Game():
def __init__(self,id,group):
self.game_id = id
self.group_name = group
self.player_list=[]
self.cards = Cards
#self.score_board = {} # {player:score}
self.cards_on_table = [] # [{player:card}]
self.gamestat = 0
def add_player(self,player):
self.player_list.append(player)
#self.score_board.update({player:0})
def dast_dadan_dar_yek_round(self):
pass
def round_up(self):
self.first_player=self.player_list[self.round % self.player_count ]
for player in self.player_list:
Cards.dast_bede(self.round)
for i in range(self.round):
self.set_up()
self.round += 1
#end of round
def set_up(self):
cards_in_this_set=[]