Boardgame.io: Use bots as part of gameplay

Created on 17 Feb 2020  路  4Comments  路  Source: boardgameio/boardgame.io

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.

Most helpful comment

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.

All 4 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicolodavis picture nicolodavis  路  3Comments

SaFrMo picture SaFrMo  路  7Comments

nicolodavis picture nicolodavis  路  4Comments

MichalPP picture MichalPP  路  10Comments

julienroulle picture julienroulle  路  9Comments