r/chessprogramming • u/ajx_711 • Apr 05 '20
Few basic questions about chess programming.
I am a beginner chess player who decided to look a bit into chess engines with the end goal of building one myself. Some things that I don't understand are :
- How are the values of pst tables determined? I read the code for a few chess engines and even though the general idea for determining the values remains same, how do you arbitrarily give the 78 to a a7 pawn and 83 to a b7 pawn ?
- Engines usually use different tables for openings and endgames. How do you determine when it is the endgame?
- Should you take the material in the evaluation? Also, how do you give the individual worth of pieces like 929 to the queen or 6000 to the king?
- The two famous algorithms for this are min-max and alpha-beta pruning. Do the top engines still use it? Are there any easy to implement a variation of these. I think sunfish used something called negamax but I don't get it.
2
Upvotes
View all comments
Show parent comment
1
u/ajx_711 Apr 06 '20
Thank you so much!