Skip to content
New issue

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

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

Already on GitHub? # to your account

show how to run python script #70

Open
zundous opened this issue Jan 28, 2018 · 3 comments
Open

show how to run python script #70

zundous opened this issue Jan 28, 2018 · 3 comments

Comments

@zundous
Copy link

zundous commented Jan 28, 2018

Which option should we use for running AI written in python?

official course.smrjky py3_sample.py 0 py3_sample.py 1 --stdinLogFile0 stdin0.txt --stdinLogFile1 stdin1.txt --stderrLogFile0 stderr0.txt --stderrLogFile1 stderr1.txt > gamelog.json

@arukuka
Copy link
Member

arukuka commented Jan 28, 2018

Thank @zundous for letting us know it.
The following option maybe useful.
official course.smrjky "python3 py3_sample.py" 0 "python3 py3_sample.py" 1 --stdinLogFile0 stdin0.txt --stdinLogFile1 stdin1.txt --stderrLogFile0 stderr0.txt --stderrLogFile1 stderr1.txt > gamelog.json

player/py3_sample.py has shebang so that the AI can be run by the option you specified.
However, in some environments (e.g.: Windows) we cannot run the AI using shebang.

Additionally, we need to install numpy because our python sample use this library.
Run pip install numpy if you need it.

If it still does not work, please attach log file ( stderr0.txt, stderr1.txt ... ).

@zundous
Copy link
Author

zundous commented Jan 28, 2018

Thanks @arukuka, I'll discard Windows.

@arukuka
Copy link
Member

arukuka commented Jan 28, 2018

Sorry for the inconvenience.
I'd like to add the information to README*.txt for this issue, but I have no resources now.

For announcing it to participants, we do not close #70 until the pull request fixing it is merged or other solution is shown.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants