main.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:Wolf-Killer 作者: merrymercy 项目源码 文件源码
def redirectAll(session, now):
    global game
    if (not pdb.exist(session.get('name'))):
        goto = 'index'
    else:
        pl = pdb.players[session['name']]
        if (game.state == game.GST_ROOM_CLOSED):
            game = Game()
        if (game.checkPlayer(pl.username)):
            goto = 'room_play'
        else:
            goto = 'lobby'

    if goto == now:
        return None
    else:
        return goto

#
# API for Host
#
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号