From 5c295fc4bbf825d45113697425713eb40413f7c5 Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 23 Jan 2025 14:33:51 +0100 Subject: [PATCH] updated README --- Makefile | 4 ++-- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 9cd34eb..a0a9175 100644 --- a/Makefile +++ b/Makefile @@ -23,11 +23,11 @@ OBJS := $(addprefix $(OBJ_DIR)/, $(notdir $(SRCS:.cpp=.o))) # Target executable $(EXE)$(EXE_EXT): $(OBJS) - $(CXX) -o $@ $^ -O3 + $(CXX) -o $@ $^ -O3 -lpthread # Rule to compile source files to object files $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/types.h | $(OBJ_DIR) - $(CXX) -c -o $@ $< -O3 + $(CXX) -c -o $@ $< -O3 -lpthread # Create the object directory if it doesn't exist $(OBJ_DIR): diff --git a/README.md b/README.md index 47531ef..3e96eae 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,54 @@ ![Eleanor](https://i.ibb.co/T1ZV9wN/91dea356-a725-45fd-b7a2-cd92afddcba4-1.jpg) # Eleanor is a chess engine -### Features +## Features -- Bitboard representation +- Bitboard board representation - Magic Bitboards - Legal move generation - Precalculated attack tables - Storing moves in a 16 bit word - Copy/make moving -- Simple evaluation (material and piece-square tables) -- NegaMax search with alpha beta pruning +- Simple evaluation (material and piece-square tables, MVV-LVA) +- Principal Variation Search +- Move ordering +- Time management - UCI -### Sources I used +## Installation + +> Prerequisites: +> - A C++ compiler +> - Access to `make` command + + 1. Clone the repo to your PC + + 2. Run the command `make` in the root directory + > You can specify the compiler with the flag `CXX` + > and the executable name with `EXE`. + > By default they are `g++` and `Eleanor` respectively. + +3. Run the executable + +## How to use +There are some commands that you can use the engine with. + +- **`position`**: Set the current position of the board with [FEN](https://www.chess.com/terms/fen-chess). +`position [FEN]` or `position startpos` can be used. +- **`ucinewgame`** resets the position and game state +- **`quit`** terminates the program +- **`go`** is the command that asks what is the best move in the current position (search), +but we have to give it some parameters: +`wtime` `btime` `winc` `binc` +the first letter tells the color of player +wtime sets the remaining time of the white player +and winc sets the increments for the white player +**It's important that these parameters are given in milliseconds!** +- **`stop`** stops the current search +- **`bench`** tests the search speed of the engine on a set of positions + +Also, the engine can be connected to any GUI software that has UCI support. + +## Sources I used [Chess Programming Wiki](https://www.chessprogramming.org/Main_Page "Chess Programming Wiki") [Maksim Korzh's chess engine in C series](https://www.youtube.com/watch?v=QUNP-UjujBM&list=PLmN0neTso3Jxh8ZIylk74JpwfiWNI76Cs "Maksim Korzh's chess engine in C series") @@ -25,4 +61,5 @@ **The project is still in progress and developed constantly. Contributions are highly appreciated.** -###### Last edited: 2024-05-06 +###### Last edited: 2025-01-23 +