Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

how can I start a game between human-text-input and AI ? #2

Open
chaosconst opened this issue Oct 6, 2019 · 3 comments
Open

how can I start a game between human-text-input and AI ? #2

chaosconst opened this issue Oct 6, 2019 · 3 comments

Comments

@chaosconst
Copy link

I can run this game by scripts/behavior_clone/match2.py between two AI, but I want a version that one side is an AI guided by human with keyboard text input, another side is a simple ai.
And I think text-input should be an important form to test the whole project( or even the final form). I found that ./minirts humanplay --vis_after 0 can not work anymore, the latest version even removed binary file ./minirts, left only ./minirts-backend.
So, where can I find a user-frontend for human-text-input, is there some parameters I can pass to ./minirts-backend. to get the frontend, or I should implement one by myself?

@hengyuan-hu
Copy link
Contributor

check out minirts/scripts/behavior_clone/human_coach.py

@apjacob
Copy link

apjacob commented Nov 27, 2019

I looked into that file as well. How do I launch the websocket client? Launching it using .minirts-backend doesn't seem to work.

@hengyuan-hu
Copy link
Contributor

It turns out that the documentation on how to watch the gameplay directly from the backend engine (instead of from processed json file) is missing. It is a bit involving because we need to set up the apache web server, especially without sudo privilege. I added detailed documentation on how to do that in the readme https://github.com/facebookresearch/minirts#control-executor-with-text

Hopefully this will help! Sorry for missing this functionality in the initial release.

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

No branches or pull requests

3 participants