source/client/Controller.py
def draw(self):
        """Request a draw from the server"""
        if self._state.turn_phase != Turn_Phases[1]:
            self.note = "You can only draw at the start of your turn"
            return
        connection.Send({"action": "draw"})
        #Transition phase immediately to avoid double draw
        self._state.turn_phase = Turn_Phases[3]
Request a draw from the server
Request a draw from the server
Request a draw from the server
def draw(self):
        if self._state.turn_phase != Turn_Phases[1]:
            self.note = "You can only draw at the start of your turn"
            return
        connection.Send({"action": "draw"})
        self._state.turn_phase = Turn_Phases[3]
def draw ( self ) : if self . _state . turn_phase != Turn_Phases [ 1 ] : self . note = "You can only draw at the start of your turn" return connection . Send ( { "action" : "draw" } ) self . _state . turn_phase = Turn_Phases [ 3 ]
Request a draw from the server
Request a draw from the server
"""Request a draw from the server""" #Transition phase immediately to avoid double draw
self