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); }
public void newGame() { setEnabled(true); if (gameOver != null) gameOver.dispose(); clearPGN(); updateStatusBar("New Game!", true); flipBoard(); flipBoard(); }