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

Test level generation #43

Open
anishthite opened this issue Oct 26, 2020 · 1 comment
Open

Test level generation #43

anishthite opened this issue Oct 26, 2020 · 1 comment

Comments

@anishthite
Copy link

Hello!
I am trying to modify the environment where I can pass in a string similar to char* test and have it build a level. However, I can't seem to get the environment to render char* test as a level.
I've modified state_reset to call generate_test_level after initial_floor_and_walls, but it seems to result in the agent suspended in a wall with no ability to move. Furthermore, editing char* test doesn't seem to have an effect.
Do you have any suggestions for generating a specific layout based on a char*?

Thank you!

@christopherhesse
Copy link
Collaborator

It looks like you need to have a function like generate_test_level: https://github.com/openai/coinrun/blob/master/coinrun/coinrun.cpp#L675
You should start with passing in exactly the existing test level: https://github.com/openai/coinrun/blob/master/coinrun/coinrun.cpp#L100 and making sure it works, then trying other test levels of your own design. It might be something simple like your position is being set to inside a wall or the expected level size is incorrect.

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

2 participants