https://github.com/valera-rozuvan/sharky
sharky chess engine
https://github.com/valera-rozuvan/sharky
c chess chess-engine
Last synced: about 1 year ago
JSON representation
sharky chess engine
- Host: GitHub
- URL: https://github.com/valera-rozuvan/sharky
- Owner: valera-rozuvan
- License: mit
- Created: 2019-10-04T18:42:54.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T15:55:56.000Z (over 2 years ago)
- Last Synced: 2025-04-04T12:53:08.374Z (over 1 year ago)
- Topics: c, chess, chess-engine
- Language: C
- Homepage:
- Size: 5.82 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: docs/roadmap.md
Awesome Lists containing this project
README
# sharky
sharky chess engine
## about
[](https://travis-ci.org/valera-rozuvan/sharky)

Sharky is a UCI chess engine written in C. It plays random legal moves (for now).
## building
### prerequisites
Your system needs to have `make` and `gcc` installed.
### make commands
1. To build, run `make`. Executable `sharky` will be in `./build` directory.
2. To test, run `make test`. Executable `tests` will be in `./build` directory.
3. To clean the project, run `make clean`.
## perft
Perft is provided as a stand alone executable. To build it, run `make perft`. You can then run the executable `./build/perft`. Please provide depth via `--depth` or `-d` CLI param, and position as a FEN string via `--fen` or `-f` CLI param.
For example:
```
./build/perft --depth 5 --fen "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
./build/perft -d 5 -f "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
```
## contributing
Please take a look at the source code. Feel free to submit a PR or 2, if you spot something that you can improve.
## roadmap
There are quite a few things planned for Sharky. Some of them are listed in [roadmap.md](docs/roadmap.md) file.
---
## license
The project `'sharky'` is licensed under the MIT License.
See [LICENSE](./LICENSE) for more details.
The latest source code can be retrieved from one of several mirrors:
1. [github.com/valera-rozuvan/sharky](https://github.com/valera-rozuvan/sharky)
2. [gitlab.com/valera-rozuvan/sharky](https://gitlab.com/valera-rozuvan/sharky)
3. [git.rozuvan.net/sharky](https://git.rozuvan.net/sharky)
Copyright (c) 2019-2022 [Valera Rozuvan](https://valera.rozuvan.net/)