timelimit on skip command
This commit is contained in:
parent
27fff4b2e1
commit
76b869fce7
2 changed files with 4 additions and 0 deletions
2
game.py
2
game.py
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
from deck import Deck
|
||||
import card as c
|
||||
|
@ -49,6 +50,7 @@ class Game(object):
|
|||
self.logger.debug("Next Player")
|
||||
self.current_player = self.current_player.next
|
||||
self.current_player.drew = False
|
||||
self.current_player.turn_started = datetime.now()
|
||||
|
||||
def play_card(self, card):
|
||||
""" Play a card and trigger its effects """
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
import card as c
|
||||
|
||||
|
@ -35,6 +36,7 @@ class Player(object):
|
|||
self.bluffing = False
|
||||
self.drew = False
|
||||
self.anti_cheat = 0
|
||||
self.turn_started = datetime.now()
|
||||
|
||||
def leave(self):
|
||||
""" Leave the current game """
|
||||
|
|
Loading…
Reference in a new issue