Commit f8686640 authored by Anna Maria Eilertsen's avatar Anna Maria Eilertsen
Browse files

moved field to local

parent c2bebbef
......@@ -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"));
......
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