mirror of
https://github.com/maaslalani/gambit.git
synced 2024-11-24 08:22:12 +02:00
Play chess in your terminal
assets | ||
board | ||
border | ||
cmd | ||
fen | ||
game | ||
moves | ||
pieces | ||
position | ||
server | ||
square | ||
style | ||
.gitignore | ||
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