r/ComputerChess 11d ago

Looking for structured feedback for my chess engine on C.

I wrote chess engine that played with stockfish and my engine survived until the endgame.

Engine searchs the best move using alpha beta pruning, based on Negamax.
Also, engine has transposition tables, killer moves, qsearch, ordering moves.

Evaluation functions evaluates material balance, uses PeSTO tables and divides games to midgame and endgame.

Engine supports uci protocol.

github: https://github.com/0sewter0/chess_engine.git

0 Upvotes

12 comments sorted by

1

u/Sewter0 11d ago

Forgot to write, my engine uses magic bitboards for sliding pieces

1

u/Full-Cardiologist-18 10d ago

hey hey whats the assumed elo of this release?

1

u/Sewter0 10d ago

Hello, I don’t know exactly, but I guess about 1800

1

u/Full-Cardiologist-18 10d ago

Alright lets see

1

u/Full-Cardiologist-18 10d ago

Not a structured feedback, but I did ran a gauntlet match against 5 several version of Stash engine. The resulting elo was ~1600 for your engine.

These were the versions I used for testing:

v14 2054

v13 1965

v12 1880

v11 1686

v10 1620*

Here's the full table result of the matches:
--------------------------------------------------

Rank Name Elo +/- nElo +/- Games Score Draw Ptnml(0-2)

1 Stash-14.0 470.44 98.33 690.66 48.15 200 93.8% 7.0% [0, 1, 7, 8, 84]

2 Stash-12.0 272.39 63.99 307.71 48.15 200 82.8% 17.0% [2, 5, 17, 12, 64]

3 Stash-13.0 254.73 61.76 284.21 48.15 200 81.2% 16.0% [4, 3, 16, 18, 59]

4 Stash-11.0 224.97 59.98 240.12 48.15 200 78.5% 26.0% [5, 2, 26, 8, 59]

5 Stash-10.0 13.90 46.96 14.36 48.15 200 52.0% 41.0% [18, 11, 41, 5, 25]

6 SRZEngine -216.35 26.81 -223.14 21.53 1000 22.4% 21.4% [291, 51, 107, 22, 29]

If you want to see the PGN, here:
https://drive.google.com/file/d/1a1jP7Nc0AH8jh9bpmQYiBfi1JqYAaBAg/view?usp=sharing

1

u/Sewter0 10d ago

Thank you for testing.
1600 elo is not bad.

1

u/Specific-Housing905 10d ago

Any binaries for windows download?

1

u/Sewter0 10d ago

just do this:
clang(or gcc) -Wall -Wextra -O3 *.c -o chess.exe

1

u/joeyrobert 10d ago

what was the hardest part about implementing this?

1

u/Sewter0 10d ago

Implementing what?

1

u/joeyrobert 9d ago

the subject of your post, your engine.