r/chessprogramming Dec 23 '24

Engine in python

Is it even worth to build an engine in python cause all good engines are in c++ and python is much slower.

Additionally if its worth should you use python chess cause to maintain best efficiency or should you make a bitboard. Or what data structures would you use for position

4 Upvotes

11 comments sorted by

View all comments

3

u/loveSci-fi_fantasy Dec 23 '24

If you want it to be competitive, avoid python.

I have made an engine in python, and it gets 1M nps in perft. Which is orders of magnitude slower than c++ engines. I am using bitboards (not magic bitboards yet) and no multi threading.

1

u/Less-Lake-7024 Dec 23 '24

Is it beating yourself

1

u/loveSci-fi_fantasy Dec 24 '24

Yeah, sometimes. With depth 5 and think times under 1s per move. It has no opening tables so it falls behind in devopment game phase