Commit 16b34b75 authored by Anna Maria Eilertsen's avatar Anna Maria Eilertsen
Browse files

removed unused timer

parent fa98982c
......@@ -9,7 +9,6 @@ import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.Timer;
import inf101.v20.sem2.mnkgames.MNKGame;
import inf101.v20.sem2.twoPlayerGame.TwoPlayerGame;
......@@ -49,7 +48,6 @@ s * Initializes a JFrame in which we place the game
this.gameSupplier = gameSupplier;
//initialize to default values
game = new TwoPlayerGame<>(gameSupplier.getTicTacToeGame());
new Timer(1000, this);
}
/*
......@@ -67,9 +65,6 @@ s * Initializes a JFrame in which we place the game
if(e.getSource() == playTicTacToeButton) {
reset(gameSupplier.getTicTacToeGame());
}
if(e.getSource() instanceof Timer) {
endOfTurn();
}
}
private void reset(MNKGame newGame) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment