carp icon indicating copy to clipboard operation
carp copied to clipboard

Incorrect PIECE_VALUE used for multiplication of knights on the evaluate function

Open tolumide-ng opened this issue 1 year ago • 1 comments
trafficstars

Hello, Thank you for your hard work and dedication to this project! I really appreciate the effort that goes into maintaining it. I encountered an issue I think might have been an unintended typo on the evaluate function in position.rs here: https://github.com/dede1751/carp/blob/91a609f2747a1746502fb1dc2183ed495841bbb4/engine/src/position.rs#L153

It appears that the PIECE_VALUE of a king was used to multiply the knights count.

Thanks again for your time.

tolumide-ng avatar Oct 20 '24 00:10 tolumide-ng