euclidstellar's blog

By euclidstellar, history, 2 years ago, In English

Hi everyone,

I made a chess engine using an alpha-beta pruning / negamax algorithm along with a transposition table to optimise the pre-calculation of moves in a game tree.

please have a look and let me know how can i improve this chess engine and optimise its recursive calls(depth) to manage latency.

GitHub : https://github.com/EuclidStellar/Sepentia-ChessEngine ( if you find it good please do star it )

also if you are interested to know how i made this here's a medium article I wrote on it :https://medium.com/@euclidstellar_57634/creating-a-chess-engine-sepentia-835a86aa25da

  • Vote: I like it
  • +68
  • Vote: I do not like it

| Write comment?
»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I'm not good at chess engines but if I know Big Algo they must be using 1e9 different heuristics.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

If you change the depth $$$4 \rightarrow 5$$$, will it be too slow?

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

https://www.youtube.com/watch?v=U4ogK0MIzqk This can help you, it has a lot of good techniques for making chess engines. If you want to make an even stonger bot, here is another video: https://www.youtube.com/watch?v=_vqlIPDR2TU

Hope this helps!

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Did you implement Zobrist hashing for the board state? Because Zobrist Hashing can make your code almost 4000 times faster.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I used to be interested in making bots for chess-like 2-player zero-sum games too. I found this resource to be very useful: https://www.chessprogramming.org/Main_Page. Check it out.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I wrote a chess engine after watching that Sebastian Lague video a year ago. Mine kinda sucked, I found this one though https://github.com/thomasahle/sunfish It is very good

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hey, that's great! I also made a chess engine using the same algorithm with other optimizations. You can check it out here: https://github.com/imranakki/OBSIDIAN. It plays well, but sometimes makes dumb moves when the time runs out.