FeXd / puzzle-chess

Find the best move.
http://puzzlechess.ca/
GNU General Public License v3.0
0 stars 0 forks source link

Bug: Promotion #26

Closed FeXd closed 9 months ago

FeXd commented 9 months ago

Currently unable to promote Pawn to Queen in order to solve this puzzle:

image

FeXd commented 9 months ago

I've realized this might be an issue with how I'm using js-chess-engine at the moment.

I'm using Option 2 - Without in-memory currently, which doesn't support setPiece.

When a pawn reaches an end of a chessboard, he is automatically converted and calculated as a Queen. If you like, player can pick a new chess piece in your app, and you can send an updated chessboard. For in-memory approach please check setPiece function.

I'm inclined to find a way to just avoid any puzzle which includes a promotion...