core.py 文件源码

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

项目:gym_vgdl 作者: EndingCredits 项目源码 文件源码
def isDone(self, game):
        """ returns whether the game is over, with a win/lose flag """
        from pygame.locals import K_ESCAPE, QUIT
        if game.keystate[K_ESCAPE] or pygame.event.peek(QUIT):
            return True, False
        else:
            return False, None

# This needs to go at the bottom so that classes in core are already loaded
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号