Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabrielfu/gochess


https://github.com/gabrielfu/gochess

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# gochess

A toy chess game playable against human and engine on terminal.

This project is inspired by [Sophia](https://github.com/bartekspitza/sophia) as a personal Go exercise.

## Usage

```shell
go run cmd/main.go cli

OPTIONS:
--flip, -f flip the board at Black's turn (default: false)
--eval, -e show the evaluation bar (default: false)
--white, -w white will be played by an engine (default: false)
--black, -b black will be played by an engine (default: false)
--help, -h show help
```

## Interface

A chessboard will be displayed on the terminal.
If `-e` is specified, an evaluation bar will be shown below it.
The current PGN is also displayed.

![Interface](interface.png)

When it is your turn, you can input one of the following to the prompt:
- A move in [Standard Algebraic Notation](https://en.wikipedia.org/wiki/Algebraic_notation_(chess))
- `undo`: This will undo a full move (i.e., your opponent's and your move)