Ejemplo n.º 1
0
 async def restart_game(self):
     req = sc_pb.RequestRestartGame()
     result = await self._execute(restart_game=req)
     return result
Ejemplo n.º 2
0
 def restart(self):
     """Restart the game. Only done by the host."""
     return self._client.send(restart_game=sc_pb.RequestRestartGame())
Ejemplo n.º 3
0
 async def reset(self):
     try:
         await self._execute(restart_game=sc_pb.RequestRestartGame())
     except ProtocolError:
         if is_resign:
             raise