2.14.9 • Published 2 years ago
@dxos/chess-bot v2.14.9
Game Bot
This is a Bot for playing chess games. Core model is located at Chess Core. Currently the bot is a player of black pieces, making random moves.
Run the Bot locally
Use two terminals.
First terminal
- Run the factory:
cd examples/chess-bot
yarn wire bot factory start --local-dev
Copy the bot factory topic.
Second terminal
- Create or join a party:
yarn wire party create
// or
yarn wire party join <party ID> --url <copied invite URL>
- Create or join a chess game:
chess create
// or
chess join 1588764145416
- Spawn the bot:
bot spawn --bot-id="wrn:bot:wireline.io/chess" --topic <bot-factory-topic> --spec='{"id":1588764145416}'
Publishing
Assuming MacOS at this point
- Pulish and register
yarn package:macos-x64
yarn wire bot publish
yarn wire bot register
- Query to make sure it's there
yarn wire bot query --name 'wireline.io/chess'
- Run the bot factory NOT-locally:
cd examples/chess-bot
yarn wire bot factory start
- Spawn the bot as before. It will be downloaded from WNS/IPFS
2.14.9-dev.03615d1
2 years ago
2.14.9
2 years ago
2.14.9-dev.3ab9a5a
2 years ago
2.14.9-dev.70b6b7f
2 years ago
2.14.8
2 years ago
2.14.10-dev.b2f2222
2 years ago
2.14.10-dev.4ae6736
2 years ago
2.14.9-dev.1386012
2 years ago
2.14.9-dev.cfd95c1
2 years ago
2.14.9-dev.0c07b45
2 years ago
1.0.0-beta.59
4 years ago