From 909479dacf8b6390472efe221affd4290dd1a9cb Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 2 Aug 2026 16:16:44 +0200 Subject: improving readme --- README.md | 11 ++++++----- src/board/board.cpp | 7 ++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 44a1c2d..7dc1f55 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ -Mono +# Mono + A UCI chess engine written in c++ -# Running +## Running -## Requirement +### 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 +### Building ```bash cmake -B build -S . # Run only on cmake config changes (and first time) @@ -23,7 +24,7 @@ cmake --build ./build # Build ./build/chess # Run the app ``` -## Details +### Details - [AddressSanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer) (aka ASan) - [UndefinedBehaviorSanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) (aka UBSan) diff --git a/src/board/board.cpp b/src/board/board.cpp index 2257010..b4c058a 100644 --- a/src/board/board.cpp +++ b/src/board/board.cpp @@ -1,10 +1,11 @@ -#include "board.hpp" -#include "moves.hpp" -#include "zobrist.hpp" #include #include #include +#include "board.hpp" +#include "moves.hpp" +#include "zobrist.hpp" + int PositionToIndex(Position i) { return i.rank * 8 + i.file; } Position FindKing(Game *b, bool color) { -- cgit v1.2.3