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

Use bots as part of gameplay #548

Closed
br0p0p opened this issue Feb 17, 2020 · 4 comments
Closed

Use bots as part of gameplay #548

br0p0p opened this issue Feb 17, 2020 · 4 comments

Comments

@br0p0p
Copy link

br0p0p commented Feb 17, 2020

I might just be missing it but is it possible to use a bot as a part of normal gameplay? For example, a human vs. AI chess game or blackjack where the dealer is a bot. From what I see, the bot is only available as a means to test gameplay and is not exposed through ctx or otherwise.

@nicolodavis
Copy link
Member

You can as of v0.37.

This isn't documented yet, but the summary is that you can do something like:

multiplayer: Local({ bots: ... })

Take a look at the unit tests in src/client/transport/local.test.js until the docs catch up.

@br0p0p
Copy link
Author

br0p0p commented Feb 17, 2020

Ah, great. For others who come across this, I found issue #383 which has some references to code for a similar use case. Thanks!

@dondragon2
Copy link

Any chance of the documentation updating any time soon to include this?

@brokolja
Copy link

brokolja commented Sep 9, 2020

Any chance of the documentation updating any time soon to include this?

Any news on this one?

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

4 participants