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
f8686640
Commit
f8686640
authored
Mar 25, 2020
by
Anna Maria Eilertsen
Browse files
moved field to local
parent
c2bebbef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/inf101/v20/sem2/mnkgames/GUI/MNKGameGUI.java
View file @
f8686640
...
...
@@ -54,7 +54,6 @@ s * Initializes a JFrame in which we place the game
private
JLabel
statusMessage
;
private
Grid
<
GamePanel
>
clickablePanels
;
private
GameSupplier
gameSupplier
;
private
boolean
multiplayer
;
private
TwoPlayerGame
game
;
public
MNKGameGUI
(
GameSupplier
gameSupplier
)
{
...
...
@@ -258,7 +257,7 @@ s * Initializes a JFrame in which we place the game
*/
private
void
collectPlayerInfo
()
{
JFrame
frame
=
new
JFrame
();
multiplayer
=
promptMultiplayer
(
frame
);
boolean
multiplayer
=
promptMultiplayer
(
frame
);
game
.
setHumanPlayer1
(
promptPlayerName
(
frame
,
"Player 1"
));
if
(
multiplayer
)
{
game
.
setHumanPlayer2
(
promptPlayerName
(
frame
,
"Player 2"
));
...
...
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