I’m writing a chess programm in Java with Chesspresso.
Unfortunately, I did not find any way for changing the promotion piece when a pawn reaches the 8th (the first) rank.
I’ve been searching on google, in the Javadoc index, and on this forum.
Any help will be appreciated.
Regards.
Never used chesspresso, but I was curious so I had a quick look at the javadoc. Does
getPawnMove(int, int, boolean, int)not do what you want – the last argument being the promotion piece?