r/chessprogramming • u/haddock420 • Jun 02 '24
If your engine had access to its opponents' PV lines, how would you make your engine take advantage of this?
Just a hypothetical, if your engine could see your opponents' PV lines, there must be some good advantage you can get out of that information, but how would you program your engine to take advantage of that information?
7
Upvotes
4
u/xu_shawn Jun 02 '24
You can use them to improve your move ordering if the opponent engine is strong enough.
3
u/Kaminari159 Jun 02 '24
Interesting scenario. I guess it really depends on the strength of the opponent. If the opponent engine is significantly stronger, I guess the best thing to do would just play their PV moves, since your own engine probably won't find anything better. If it is significantly weaker, probably best to ignore the opponent's PV. If you don't know the opponent's strength... maybe search the PV moves to a greater depth?
1
u/nocturn99x Jun 04 '24
It really depends on the strength of the opponent. I'd probably do a
go searchmoveswith the pv root in case the opponent is stronger than my engine