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.
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.
Ah, great. For others who come across this, I found issue #383 which has some references to code for a similar use case. Thanks!
Any chance of the documentation updating any time soon to include this?
Any chance of the documentation updating any time soon to include this?
Any news on this one?
Most helpful comment
You can as of v0.37.
This isn't documented yet, but the summary is that you can do something like:
Take a look at the unit tests in
src/client/transport/local.test.jsuntil the docs catch up.