Example #1
0
 def createNewGame(self, inputMsg, r):
     g = game.buildNewGame(inputMsg.gameType, r)
     self.games_pending[g.type].append(g)
     announce = mp.ResponseMessage("announce", g.id, None, "Created a new game. Please wait for another player to connect.", None)
     self.sendMessage(r, announce)
def createNewGame(inputMsg, sid):
    g = game.buildNewGame(inputMsg.gameType, sid)
    games_pending[g.type].append(g)
    announce = m.ResponseMessage("announce", None, g.type, None, "Created a new game. Please wait for another player to connect.", False)
    sendMessage(sid, announce)