1
0
mirror of https://github.com/maaslalani/gambit.git synced 2024-11-28 08:38:36 +02:00
Play chess in your terminal
Go to file
2021-12-01 20:33:44 -05:00
board_test.go feat: (de)serialize boards 2021-11-27 18:13:04 -05:00
board.go feat: (de)serialize boards 2021-11-27 18:13:04 -05:00
board.txt feat: (de)serialize boards 2021-11-27 18:13:04 -05:00
go.mod feat: add row and column labels 2021-11-26 23:49:43 -05:00
go.sum feat: add row and column labels 2021-11-26 23:49:43 -05:00
main.go feat: (de)serialize boards 2021-11-27 18:13:04 -05:00
piece_test.go feat: (de)serialize boards 2021-11-27 18:13:04 -05:00
piece.go feat: (de)serialize boards 2021-11-27 18:13:04 -05:00
README.md doc: readme update 2021-11-27 01:20:17 -05:00
style.go fix: faint style 2021-12-01 20:33:44 -05:00

Gambit

Chess board in your terminal.

Play


    ┌───┬───┬───┬───┬───┬───┬───┬───┐
 8  │ ♜ │ ♞ │ ♝ │ ♛ │ ♚ │ ♞ │ ♝ │ ♜ │
    ├───┼───┼───┼───┼───┼───┼───┼───┤
 7  │ ♟ │ ♟ │ ♟ │ ♟ │ ♟ │ ♟ │ ♟ │ ♟ │
    ├───┼───┼───┼───┼───┼───┼───┼───┤
 6  │   │   │   │   │   │   │   │   │
    ├───┼───┼───┼───┼───┼───┼───┼───┤
 5  │   │   │   │   │   │   │   │   │
    ├───┼───┼───┼───┼───┼───┼───┼───┤
 4  │   │   │   │   │   │   │   │   │
    ├───┼───┼───┼───┼───┼───┼───┼───┤
 3  │   │   │   │   │   │   │   │   │
    ├───┼───┼───┼───┼───┼───┼───┼───┤
 2  │ ♙ │ ♙ │ ♙ │ ♙ │ ♙ │ ♙ │ ♙ │ ♙ │
    ├───┼───┼───┼───┼───┼───┼───┼───┤
 1  │ ♖ │ ♘ │ ♗ │ ♕ │ ♔ │ ♘ │ ♗ │ ♖ │
    └───┴───┴───┴───┴───┴───┴───┴───┘

      A   B   C   D   E   F   G   H


Move

Suppose you want to open as white with Pawn E4. You will first select the square with the piece you want to move by typing E2, then type the square of the desired end position E4.

Just like a real chess board, gambit currently supports illegal moves. This will likely change in the future.

Players

gambit supports local and networked play. You can play a local game by running gambit and moving the pieces. You can flip the board by pressing ctrl+f to allow the second player to go.

For networked play (not available yet), both players can run gambit unique-room-id, this will connect both players to a shared room in which both can take turns making moves.