Commit 710fe631 authored by YuFan Jia's avatar YuFan Jia 💤
Browse files

feat(restart):

BREAKING CHANGE:
parent 724d0994
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ public class GameCore {
        }
        intializeChess();
        currentPlayer = ChessPiece.BLACK;
        ChessGameUI.thisStatus.setCurrentPlayer(currentPlayer);
        countScore();
    }

+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public class ChessGameUI extends JPanel {
	}

	private void restartButtonActionPerformed() {// restart按钮触发事件
		new ChessGameUI();
		thisGameCore.restart();
	}

	private void undoButtonActionPerformed() {// undo按钮触发事件