This commit is contained in:
Love 2022-11-24 18:52:28 +01:00
parent ae692d1428
commit 9f10fc6dcd
No known key found for this signature in database
GPG Key ID: A3C10DC241C8FA9F

View File

@ -123,8 +123,8 @@ public class Pawn extends Piece {
private void transform(Piece[][] pieces) throws HeadlessException { private void transform(Piece[][] pieces) throws HeadlessException {
String[] transformations = {"Queen", "Rook", "Bishop", "Horse"}; String[] transformations = {"Queen", "Rook", "Bishop", "Horse"};
int choosenTransformations = JOptionPane.showOptionDialog(null, int choosenTransformations = JOptionPane.showOptionDialog(null,
"What do you want to transform into?", "What do you want to the pawn to transform into?",
"Click a button", "Pawn about to transform",
JOptionPane.DEFAULT_OPTION, JOptionPane.DEFAULT_OPTION,
JOptionPane.INFORMATION_MESSAGE, JOptionPane.INFORMATION_MESSAGE,
null, null,