예제 #1
0
 public void gameOver(int outcome) {
   if (outcome == 1) gameOver = new EstadoFinalJuego(this, " White Win");
   else if (outcome == -1) gameOver = new EstadoFinalJuego(this, " Black Win");
   else gameOver = new EstadoFinalJuego(this, " Draw");
   setEnabled(false);
   gameOver.setVisible(true);
 }
예제 #2
0
 public void newGame() {
   setEnabled(true);
   if (gameOver != null) gameOver.dispose();
   clearPGN();
   updateStatusBar("New Game!", true);
   flipBoard();
   flipBoard();
 }