mirror of
https://github.com/maaslalani/gambit.git
synced 2024-12-26 20:54:07 +02:00
Play chess in your terminal
19181d4ada
* Export model * Set game flipped state from outside * Get the current board FEN position from outside * Add MoveMsg and NotifyMsg Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com> |
||
---|---|---|
assets | ||
board | ||
border | ||
fen | ||
game | ||
moves | ||
pieces | ||
position | ||
square | ||
style | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md |
Gambit
Chess board in your terminal.
Installation
go install github.com/maaslalani/gambit@latest
or run from source
git clone github.com/maaslalani/gambit
go run ./...
Play
You can play a game by running:
gambit
You can press ctrl+f to flip the board to give a better perspective for the second player.
Move
There are two ways to move in gambit
:
- Type out the square the piece you want to move is on, then type out the square to which you want to move the piece.
- With the mouse, click on the target piece and target square.
Future
In the future, gambit
will support:
-
networked play, where two players can run
gabmit unique-room-id
and play together through peer-to-peer communication. -
Single player games, by adding a chess engine