@dxos/cli-chess v2.14.9
cli-chess
This is a CLI extension for playing chess games. Core model is located at Chess Core.
Initial linking
There are some step required in order to run/develop this extension outside of the cli
repository:
- Link the chess cli package:
cd packages/cli-chess
yarn link
- Use the linked cli package in cli:
cd cli
yarn link "@dxos/cli-chess"
- That should solve the issue for now
Running the CLI
Chess CLI is operable within a party, so one needs to create or join a party:
yarn wire party create
Connecting to a browser party
- Create the party in the browser
- Copy the party ID
- Create the invite link
- Join the party from CLI:
yarn wire party join --invitation-url <copied invite URL>
Available commands
Create
Create new game:
[wire]> chess create <title>
{"id":1588255463315}
List
List existing games:
[wire]> chess list
[wire]> [{"__type_url":"testing.chess.Game","id":1588255463315,"title":"Sef."}]
Join
Join an existing game:
[wire]> chess join 1588255463315
[wire]> [{"__type_url":"testing.chess.Game","id":1588255463315,"title":"Sef."}]
Move
Make a move:
chess move <from> <to>
Example:
[wire]> chess move a2 a3
[wire]>
+------------------------+
8 | r n b q k b n r |
7 | p p p p p p p p |
6 | . . . . . . . . |
5 | . . . . . . . . |
4 | . . . . . . . . |
3 | P . . . . . . . |
2 | . P P P P P P P |
1 | R N B Q K B N R |
+------------------------+
a b c d e f g h
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago