Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Minesweeper(File seedFile) {
- try {
- Scanner seedInput = new Scanner(seedFile);
- this.rows = seedInput.nextInt();
- this.cols = seedInput.nextInt();
- this.mines = seedInput.nextInt();
- for (int c = 0; c<mines; c++) {
- mineBoard[seedInput.nextInt()][seedInput.nextInt()] = "M";
- }
- } catch (FileNotFoundException e) {
- // handler exception here
- } // try
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement