Skip to content
Snippets Groups Projects
Commit 8fa1f5db authored by MasterPyo's avatar MasterPyo
Browse files

fix promotion

parent 7b5d80f4
No related merge requests found
...@@ -192,6 +192,9 @@ public class BoardView { ...@@ -192,6 +192,9 @@ public class BoardView {
// Promotion to Queen (by default, Queen for now) // Promotion to Queen (by default, Queen for now)
board.mutationOfSelectedPiece(Board.QUEEN); // (on model) board.mutationOfSelectedPiece(Board.QUEEN); // (on model)
mutationPiece(model, selected, Custom3dModel.QUEEN); // (on view) mutationPiece(model, selected, Custom3dModel.QUEEN); // (on view)
// --- MOVE (while doing promotion) ---
board.movePiece(selected, arrival); // move piece (on model)
movePiece(selected, arrival); // move piece (on 3d view)
} }
// --- PRISE EN PASSANT --- // --- PRISE EN PASSANT ---
else { else {
......
No preview for this file type
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment