1. private static void startNew() {
    2. //表示未结束
    3. gameOver = false;
    4. //黑棋优先
    5. isBlack = true;
    6. //将数组置为 新的数组
    7. chesses = new Chess[SIZE * SIZE];
    8. //计数器置为 0
    9. count = 0;
    10. //删除面板中所有的棋子
    11. pane.getChildren().removeIf(c -> c instanceof Circle);
    12. }