Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielfu/gochess
https://github.com/gabrielfu/gochess
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gabrielfu/gochess
- Owner: gabrielfu
- Created: 2023-11-06T09:35:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-04T04:03:49.000Z (about 1 year ago)
- Last Synced: 2024-01-04T11:26:30.952Z (about 1 year ago)
- Language: Go
- Size: 131 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 cliOPTIONS:
--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)