1
0
mirror of https://github.com/maaslalani/gambit.git synced 2024-11-19 16:39:50 +02:00
Play chess in your terminal
Go to file
2023-11-21 09:49:23 -05:00
.github/workflows ci: add build and release workflow 2022-02-23 13:48:18 -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: set server config via environment variables 2022-02-23 13:48:18 -05:00
fen doc: fen.IsValid 2022-02-06 23:03:13 -05:00
game feat: auto promote to queen 2023-11-21 09:49:23 -05:00
moves feat: auto promote to queen 2023-11-21 09:49:23 -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 chore(deps): bump dependencies 2023-10-29 22:57:38 -04:00
square comment cleanup 2021-12-24 20:55:53 -05:00
style chore(deps): bump dependencies 2023-10-29 22:57:38 -04:00
.gitignore refactor: server/middleware.go 2022-02-14 20:06:02 -05:00
.goreleaser.yaml ci: add build and release workflow 2022-02-23 13:48:18 -05:00
demo.tape feat: demo.tape + out.gif 2023-05-26 02:28:05 -04:00
docker-compose.yml ci: add build and release workflow 2022-02-23 13:48:18 -05:00
Dockerfile ci: add build and release workflow 2022-02-23 13:48:18 -05:00
go.mod chore(deps): bump dependencies 2023-10-29 22:57:38 -04:00
go.sum chore(deps): bump dependencies 2023-10-29 22:57:38 -04:00
LICENSE chore: add license 2022-02-23 13:48:18 -05:00
main.go chore: bump bubbletea@master 2022-10-17 20:20:32 -04:00
out.gif feat: demo.tape + out.gif 2023-05-26 02:28:05 -04:00
README.md docs: no chess.fyi 2023-05-26 02:36:02 -04: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 https://github.com/maaslalani/gambit
go run ./...

Docker

Gambit is available as a Docker image at ghcr.io/maaslalani/gambit.

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

Networked Play

You can play chess with gambit over ssh.

ssh [<name>@]<host> -p <port> -t <room> [<password>]

You can host your own gambit SSH server with:

gambit serve

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.