mirror of https://github.com/tiyn/yeschess
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
# ychess
|
|
|
|
Attention: **The Chess engine is not finished yet.**
|
|
|
|
![ychess-logo](ychess.png)
|
|
|
|
ychess is a chess implementation and engine written in nim.
|
|
|
|
## Usage
|
|
|
|
To play chess in the commandline simply download the code and run `nim c -r game.nim`.
|
|
You can either play the 1v1 hotseat mode or a single player mode vs the engine.
|
|
|
|
## Testing
|
|
|
|
Testing is done by `einheit` by [jyapayne](https://github.com/jyapayne/einheit).
|
|
All legal chess moves are implemented in `chess.nim` and tested by the TestSuite
|
|
in `test.nim`.
|
|
You can simply run the tests with `nim c -r test.nim`.
|
|
|
|
## Documentation
|
|
|
|
Documentation is written into the code via DocGen.
|
|
For this reason it is not saved in this repository.
|
|
To extract it into html run `nim doc --project --index:on --outdir:htmldocs game.nim`
|
|
|
|
### Board Representation
|
|
|
|
Due to easier off the board checking a
|
|
[10x12](https://www.chessprogramming.org/10x12_Board) board is used.
|
|
|
|
### Engine
|
|
|
|
The engine uses a simple implementation of the
|
|
[Minimax](https://www.chessprogramming.org/Minimax)-algorithm.
|