Skip to content
Snippets Groups Projects
Commit aa383fad authored by Carry Morgane's avatar Carry Morgane
Browse files

GameController modif

parent 502881e6
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -32,12 +32,7 @@ public class GameController implements Initializable { ...@@ -32,12 +32,7 @@ public class GameController implements Initializable {
/** /**
* *
*/ */
private static final String LEVELS_FILE = "data/levels.txt"; private static final String LEVEL_FILE = "data/level";
/**
*
*/
private BufferedReader br;
/** /**
* The model of the controller. * The model of the controller.
...@@ -45,16 +40,6 @@ public class GameController implements Initializable { ...@@ -45,16 +40,6 @@ public class GameController implements Initializable {
private Board model; private Board model;
public GameController() {
try {
br = new BufferedReader( new FileReader(LEVELS_FILE) );
String[] line = br.readLine().split(" ");
model = new Board(Integer.valueOf(line[0]), Integer.valueOf(line[1]));
} catch (IOException e) {
e.printStackTrace();
}
}
@Override @Override
public void initialize(URL location, ResourceBundle resources) { public void initialize(URL location, ResourceBundle resources) {
board.setGridLinesVisible(true); board.setGridLinesVisible(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment