aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 29945c21293bc4dca364e1e808d0faa2e6f10daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Mono

A UCI chess engine written in c++

## TODO
- Fix wrong perft 5 results
- Make pawns use new bitboards aproach

## Running

### Requirement

- Cmake (3.24+)
- C/C++ compiler that supports c 23 and c++ 23 standard (GCC 14+, Clang 18+)
- ASan (sudo dnf install libasan)
- UBSan (sudo dnf install libubsan)

### Building

```bash
cmake -B build -S . # Run only on cmake config changes (and first time)

# Or for development
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug

cmake --build ./build # Build

./build/mono # Run the app
```

### Details

- [AddressSanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer) (aka ASan)
- [UndefinedBehaviorSanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) (aka UBSan)