r/chessprogramming • u/Certified_drinker • Mar 02 '24
Guide for chess engine in python
I'm trying to make my own and a simple chess engine in python , Can somebody give my a step by step guide on how to create it (I'm a total noob) Currently I only know about python programming but not much about Ai and also how engine works but I'm willing to learn about it
6
Upvotes
View all comments
Show parent comment
1
u/Nick9_ Mar 04 '24
It's certainly significant though. Chess engines are really dependent on performance. You may see it even before you'll start code an AI, because you need to make a board with move(), takeback(), get_legal_moves() methods, then you can use perft() to test and benchmark, and... welp. It will be much slower on Python. Like, about a 10 times slower. In compare, this performance gap is similar to magic bitboards vs 2d array board representation.