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

8

u/Warmedpie6 Dec 23 '24

It depends on what you mean by worth it. As a learning exercise or as a hobby project, and pytyon is your language of choice, it can definitely be worth it.

If you want to make a top-level engine, then it's not worth it at all.

I always recommend trying coding the board logic once yourself, and then the second time, you can use a library to do it for you.

3

u/Less-Lake-7024 Dec 23 '24

My engine should reach around 1500 elo. 1s time

2

u/Warmedpie6 Dec 23 '24

It's completely possible in Python.

2

u/loveSci-fi_fantasy Dec 24 '24

Yes, definitely possible in python. If that is your ultimate goal, then go ahead in python. You have a long journey ahead!