1
0
mirror of https://github.com/maaslalani/gambit.git synced 2024-11-24 08:22:12 +02:00
Play chess in your terminal
Go to file
2022-02-14 22:11:12 -05:00
assets doc: add assets 2022-02-08 17:52:46 -05:00
board feat: ability to flip board 2022-01-31 08:29:18 -05:00
border fix: flipped board order 2022-02-08 17:23:42 -05:00
cmd feat: use coral for cli interactions 2022-02-14 19:35:15 -05:00
fen doc: fen.IsValid 2022-02-06 23:03:13 -05:00
game feat: highlight king when in check and notify checkmates 2022-02-14 19:35:15 -05:00
moves comment cleanup 2021-12-24 20:55:53 -05:00
pieces feat: highlight king when in check and notify checkmates 2022-02-14 19:35:15 -05:00
position fix: flipped board order 2022-02-08 17:23:42 -05:00
server refactor: winch -> wchan 2022-02-14 22:11:12 -05:00
square comment cleanup 2021-12-24 20:55:53 -05:00
style feat: styling 2022-02-14 22:08:25 -05:00
.gitignore refactor: server/middleware.go 2022-02-14 20:06:02 -05:00
go.mod feat: use coral for cli interactions 2022-02-14 19:35:15 -05:00
go.sum feat: use coral for cli interactions 2022-02-14 19:35:15 -05:00
main.go feat: use coral for cli interactions 2022-02-14 19:35:15 -05:00
README.md doc: add assets 2022-02-08 17:52:46 -05:00

Gambit: Play chess in your terminal

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.


Terminal chess

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