Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I faced this error " No such file or directory: 'source\\data\\map\\level_6.json' " when c.LEVEL_NUM=5 #50

Open
akihiro-coder opened this issue May 18, 2023 · 0 comments

Comments

@akihiro-coder
Copy link

akihiro-coder commented May 18, 2023

Was this bug fixed? I faced this bug when c.LEVEL_NUM == 5. After inspecting the codes, I changed line of add 1 to c.LEVEL_NUM to ↓↓

def checkGameState(self):                                                                                                                                                           
         if self.checkVictory():
             if self.game_info[c.LEVEL_NUM] < 5:
                 self.game_info[c.LEVEL_NUM] += 1
             self.next = c.GAME_VICTORY
             self.done = True

, then the games worked well as c.LEVEL_NUM == 1. Is this solution a fundamental solution?

Originally posted by @akihiro-coder in #14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant