Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Johan Gustav Thrane-Nielsen
inf101.v20.sem2.losning
Commits
16b34b75
Commit
16b34b75
authored
Apr 17, 2020
by
Anna Maria Eilertsen
Browse files
removed unused timer
parent
fa98982c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/inf101/v20/sem2/mnkgames/GUI/MNKGameGUI.java
View file @
16b34b75
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment