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