Skip to content

maaslalani/gambit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 21, 2023
9c3cb90 · Nov 21, 2023
Feb 23, 2022
Feb 8, 2022
Jan 31, 2022
Feb 8, 2022
Feb 23, 2022
Feb 7, 2022
Nov 21, 2023
Nov 21, 2023
Feb 15, 2022
Feb 8, 2022
Oct 30, 2023
Dec 25, 2021
Oct 30, 2023
Feb 15, 2022
Feb 23, 2022
Feb 23, 2022
Feb 23, 2022
May 26, 2023
May 26, 2023
Feb 23, 2022
Oct 30, 2023
Oct 30, 2023
Oct 18, 2022
May 26, 2023

Repository files navigation

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.