Closed tonyhschu closed 5 years ago
Looks good to me! @francoijs Do you have any thoughts?
Also, do you guys think it makes more sense to keep the Python stuff in a separate repo? It's a bit confusing to have both Python and JS code in one repo.
@francoijs Is this something that you would be interested in maintaining? If not, I can just keep it on my account in a new repo.
@tonyhschu That would be a nice improvement! I can create a PR later for this, but feel free to submit one.
@nicolodavis Thanks for the proposal but would you mind if the new repo stays in the BGIO galaxy on your account? Of course I will actively contribute to maintenance and evolutions.
Sure, no problem!
Great! I'll prepare a PR tomorrow. Is there any kind of test around this that I should add/fix? (Other than the obvious one in test_boardgameio.py
?
The only tests for the Python code are in test_boardgameio.py
.
Thanks for the fix @tonyhschu!
The python bot base class in
python/boardgameio.py
does not have a way of providing credentials to the server. Thus bots created with it cannot join games created via the server REST API. i.e. the following wouldn't work:Seems like it would be straight forward to add it to the base class via
options
– indeed, this is what I did to work around it for myself: https://github.com/tonyhschu/boardgame.io/tree/add-credentialing-to-python-botsEssentially it's just adding
credentials
to the_create_action
methodDoes that seem right?