From 4c2835706078145d53a52c8e988ed9b1bc690331 Mon Sep 17 00:00:00 2001 From: fdai6499 Date: Thu, 2 Feb 2023 13:54:52 +0100 Subject: [PATCH] its now possible to create a new game in sandbox whicht will be saved in our sudoku.json file --- src/main/java/src/Model.java | 70 ++++++++++++++++++++++++++++------- src/main/java/src/sudoku.json | 2 +- 2 files changed, 57 insertions(+), 15 deletions(-) diff --git a/src/main/java/src/Model.java b/src/main/java/src/Model.java index 302f9b5..7fae807 100644 --- a/src/main/java/src/Model.java +++ b/src/main/java/src/Model.java @@ -100,7 +100,6 @@ public class Model { public static String loadAllData() { - File file = new File("src/main/java/src/sudoku.json"); if (file.exists()) { @@ -110,6 +109,7 @@ public class Model { throw new RuntimeException(e); } } + String line = ""; try { Scanner scanner = new Scanner(file); @@ -120,6 +120,22 @@ public class Model { } catch (FileNotFoundException e) { throw new RuntimeException(e); } + + if (line.equals("")) { + initJsonFile(); + } + + line = ""; + try { + Scanner scanner = new Scanner(file); + while (scanner.hasNextLine()) { + line = line + scanner.nextLine(); + + } + } catch (FileNotFoundException e) { + throw new RuntimeException(e); + } + return line; } @@ -155,18 +171,6 @@ public class Model { } } - public void loadNewMedium() { - - } - - public void loadNewHard() { - - } - - public void safeNewSandboxGame() { - - } - @Override public String toString() { @@ -350,8 +354,46 @@ public class Model { } public void createNewGame(String difficulty) { - JSONObject jsonObject = modelToJson(); + JSONObject myNewGame = modelToJson(); + String s = loadAllData(); + + JSONObject object = null; + try { + object = (JSONObject) new JSONParser().parse(s); + } catch (ParseException e) { + throw new RuntimeException(e); + } + + JSONArray easyArray = (JSONArray) object.get("easyGame"); + JSONArray mediumArray = (JSONArray) object.get("mediumGame"); + JSONArray hardArray = (JSONArray) object.get("hardGame"); + + System.out.println(); + + if (difficulty.equals("easy")) { + + easyArray.add(myNewGame); + + } else if (difficulty.equals("medium")) { + + mediumArray.add(myNewGame); + + } else if (difficulty.equals("hard")) { + + hardArray.add(myNewGame); + + } + + String jsonString = object.toJSONString(); + + try { + FileWriter writer = new FileWriter("src/main/java/src/sudoku.json"); + writer.write(jsonString); + writer.close(); + } catch (IOException e) { + throw new RuntimeException(e); + } } } diff --git a/src/main/java/src/sudoku.json b/src/main/java/src/sudoku.json index 6d5978b..aae89e3 100644 --- a/src/main/java/src/sudoku.json +++ b/src/main/java/src/sudoku.json @@ -1 +1 @@ -{"mediumGame":[{"values":[{"x":0,"y":0,"value":0},{"x":1,"y":0,"value":0},{"x":2,"y":0,"value":0},{"x":3,"y":0,"value":0},{"x":4,"y":0,"value":0},{"x":5,"y":0,"value":0},{"x":6,"y":0,"value":0},{"x":7,"y":0,"value":0},{"x":8,"y":0,"value":0},{"x":0,"y":1,"value":0},{"x":1,"y":1,"value":0},{"x":2,"y":1,"value":0},{"x":3,"y":1,"value":0},{"x":4,"y":1,"value":0},{"x":5,"y":1,"value":0},{"x":6,"y":1,"value":0},{"x":7,"y":1,"value":0},{"x":8,"y":1,"value":0},{"x":0,"y":2,"value":0},{"x":1,"y":2,"value":0},{"x":2,"y":2,"value":0},{"x":3,"y":2,"value":0},{"x":4,"y":2,"value":0},{"x":5,"y":2,"value":0},{"x":6,"y":2,"value":0},{"x":7,"y":2,"value":0},{"x":8,"y":2,"value":0},{"x":0,"y":3,"value":0},{"x":1,"y":3,"value":0},{"x":2,"y":3,"value":0},{"x":3,"y":3,"value":1},{"x":4,"y":3,"value":1},{"x":5,"y":3,"value":1},{"x":6,"y":3,"value":0},{"x":7,"y":3,"value":0},{"x":8,"y":3,"value":0},{"x":0,"y":4,"value":0},{"x":1,"y":4,"value":0},{"x":2,"y":4,"value":0},{"x":3,"y":4,"value":1},{"x":4,"y":4,"value":1},{"x":5,"y":4,"value":1},{"x":6,"y":4,"value":0},{"x":7,"y":4,"value":0},{"x":8,"y":4,"value":0},{"x":0,"y":5,"value":0},{"x":1,"y":5,"value":0},{"x":2,"y":5,"value":0},{"x":3,"y":5,"value":1},{"x":4,"y":5,"value":1},{"x":5,"y":5,"value":1},{"x":6,"y":5,"value":0},{"x":7,"y":5,"value":0},{"x":8,"y":5,"value":0},{"x":0,"y":6,"value":0},{"x":1,"y":6,"value":0},{"x":2,"y":6,"value":0},{"x":3,"y":6,"value":0},{"x":4,"y":6,"value":0},{"x":5,"y":6,"value":0},{"x":6,"y":6,"value":0},{"x":7,"y":6,"value":0},{"x":8,"y":6,"value":0},{"x":0,"y":7,"value":0},{"x":1,"y":7,"value":0},{"x":2,"y":7,"value":0},{"x":3,"y":7,"value":0},{"x":4,"y":7,"value":0},{"x":5,"y":7,"value":0},{"x":6,"y":7,"value":0},{"x":7,"y":7,"value":0},{"x":8,"y":7,"value":0},{"x":0,"y":8,"value":0},{"x":1,"y":8,"value":0},{"x":2,"y":8,"value":0},{"x":3,"y":8,"value":0},{"x":4,"y":8,"value":0},{"x":5,"y":8,"value":0},{"x":6,"y":8,"value":0},{"x":7,"y":8,"value":0},{"x":8,"y":8,"value":0}]}],"easyGame":[{"values":[{"x":0,"y":0,"value":1},{"x":1,"y":0,"value":1},{"x":2,"y":0,"value":1},{"x":3,"y":0,"value":0},{"x":4,"y":0,"value":0},{"x":5,"y":0,"value":0},{"x":6,"y":0,"value":0},{"x":7,"y":0,"value":0},{"x":8,"y":0,"value":0},{"x":0,"y":1,"value":1},{"x":1,"y":1,"value":1},{"x":2,"y":1,"value":1},{"x":3,"y":1,"value":0},{"x":4,"y":1,"value":0},{"x":5,"y":1,"value":0},{"x":6,"y":1,"value":0},{"x":7,"y":1,"value":0},{"x":8,"y":1,"value":0},{"x":0,"y":2,"value":1},{"x":1,"y":2,"value":1},{"x":2,"y":2,"value":1},{"x":3,"y":2,"value":0},{"x":4,"y":2,"value":0},{"x":5,"y":2,"value":0},{"x":6,"y":2,"value":0},{"x":7,"y":2,"value":0},{"x":8,"y":2,"value":0},{"x":0,"y":3,"value":0},{"x":1,"y":3,"value":0},{"x":2,"y":3,"value":0},{"x":3,"y":3,"value":0},{"x":4,"y":3,"value":0},{"x":5,"y":3,"value":0},{"x":6,"y":3,"value":0},{"x":7,"y":3,"value":0},{"x":8,"y":3,"value":0},{"x":0,"y":4,"value":0},{"x":1,"y":4,"value":0},{"x":2,"y":4,"value":0},{"x":3,"y":4,"value":0},{"x":4,"y":4,"value":0},{"x":5,"y":4,"value":0},{"x":6,"y":4,"value":0},{"x":7,"y":4,"value":0},{"x":8,"y":4,"value":0},{"x":0,"y":5,"value":0},{"x":1,"y":5,"value":0},{"x":2,"y":5,"value":0},{"x":3,"y":5,"value":0},{"x":4,"y":5,"value":0},{"x":5,"y":5,"value":0},{"x":6,"y":5,"value":0},{"x":7,"y":5,"value":0},{"x":8,"y":5,"value":0},{"x":0,"y":6,"value":0},{"x":1,"y":6,"value":0},{"x":2,"y":6,"value":0},{"x":3,"y":6,"value":0},{"x":4,"y":6,"value":0},{"x":5,"y":6,"value":0},{"x":6,"y":6,"value":0},{"x":7,"y":6,"value":0},{"x":8,"y":6,"value":0},{"x":0,"y":7,"value":0},{"x":1,"y":7,"value":0},{"x":2,"y":7,"value":0},{"x":3,"y":7,"value":0},{"x":4,"y":7,"value":0},{"x":5,"y":7,"value":0},{"x":6,"y":7,"value":0},{"x":7,"y":7,"value":0},{"x":8,"y":7,"value":0},{"x":0,"y":8,"value":0},{"x":1,"y":8,"value":0},{"x":2,"y":8,"value":0},{"x":3,"y":8,"value":0},{"x":4,"y":8,"value":0},{"x":5,"y":8,"value":0},{"x":6,"y":8,"value":0},{"x":7,"y":8,"value":0},{"x":8,"y":8,"value":0}]}],"hardGame":[{"values":[{"x":0,"y":0,"value":0},{"x":1,"y":0,"value":0},{"x":2,"y":0,"value":0},{"x":3,"y":0,"value":0},{"x":4,"y":0,"value":0},{"x":5,"y":0,"value":0},{"x":6,"y":0,"value":0},{"x":7,"y":0,"value":0},{"x":8,"y":0,"value":0},{"x":0,"y":1,"value":0},{"x":1,"y":1,"value":0},{"x":2,"y":1,"value":0},{"x":3,"y":1,"value":0},{"x":4,"y":1,"value":0},{"x":5,"y":1,"value":0},{"x":6,"y":1,"value":0},{"x":7,"y":1,"value":0},{"x":8,"y":1,"value":0},{"x":0,"y":2,"value":0},{"x":1,"y":2,"value":0},{"x":2,"y":2,"value":0},{"x":3,"y":2,"value":0},{"x":4,"y":2,"value":0},{"x":5,"y":2,"value":0},{"x":6,"y":2,"value":0},{"x":7,"y":2,"value":0},{"x":8,"y":2,"value":0},{"x":0,"y":3,"value":0},{"x":1,"y":3,"value":0},{"x":2,"y":3,"value":0},{"x":3,"y":3,"value":0},{"x":4,"y":3,"value":0},{"x":5,"y":3,"value":0},{"x":6,"y":3,"value":0},{"x":7,"y":3,"value":0},{"x":8,"y":3,"value":0},{"x":0,"y":4,"value":0},{"x":1,"y":4,"value":0},{"x":2,"y":4,"value":0},{"x":3,"y":4,"value":0},{"x":4,"y":4,"value":0},{"x":5,"y":4,"value":0},{"x":6,"y":4,"value":0},{"x":7,"y":4,"value":0},{"x":8,"y":4,"value":0},{"x":0,"y":5,"value":0},{"x":1,"y":5,"value":0},{"x":2,"y":5,"value":0},{"x":3,"y":5,"value":0},{"x":4,"y":5,"value":0},{"x":5,"y":5,"value":0},{"x":6,"y":5,"value":0},{"x":7,"y":5,"value":0},{"x":8,"y":5,"value":0},{"x":0,"y":6,"value":0},{"x":1,"y":6,"value":0},{"x":2,"y":6,"value":0},{"x":3,"y":6,"value":0},{"x":4,"y":6,"value":0},{"x":5,"y":6,"value":0},{"x":6,"y":6,"value":1},{"x":7,"y":6,"value":1},{"x":8,"y":6,"value":1},{"x":0,"y":7,"value":0},{"x":1,"y":7,"value":0},{"x":2,"y":7,"value":0},{"x":3,"y":7,"value":0},{"x":4,"y":7,"value":0},{"x":5,"y":7,"value":0},{"x":6,"y":7,"value":1},{"x":7,"y":7,"value":1},{"x":8,"y":7,"value":1},{"x":0,"y":8,"value":0},{"x":1,"y":8,"value":0},{"x":2,"y":8,"value":0},{"x":3,"y":8,"value":0},{"x":4,"y":8,"value":0},{"x":5,"y":8,"value":0},{"x":6,"y":8,"value":1},{"x":7,"y":8,"value":1},{"x":8,"y":8,"value":1}]}]} \ No newline at end of file +{"mediumGame":[{"values":[{"x":0,"y":0,"value":0},{"x":1,"y":0,"value":0},{"x":2,"y":0,"value":0},{"x":3,"y":0,"value":0},{"x":4,"y":0,"value":0},{"x":5,"y":0,"value":0},{"x":6,"y":0,"value":0},{"x":7,"y":0,"value":0},{"x":8,"y":0,"value":0},{"x":0,"y":1,"value":0},{"x":1,"y":1,"value":0},{"x":2,"y":1,"value":0},{"x":3,"y":1,"value":0},{"x":4,"y":1,"value":0},{"x":5,"y":1,"value":0},{"x":6,"y":1,"value":0},{"x":7,"y":1,"value":0},{"x":8,"y":1,"value":0},{"x":0,"y":2,"value":0},{"x":1,"y":2,"value":0},{"x":2,"y":2,"value":0},{"x":3,"y":2,"value":0},{"x":4,"y":2,"value":0},{"x":5,"y":2,"value":0},{"x":6,"y":2,"value":0},{"x":7,"y":2,"value":0},{"x":8,"y":2,"value":0},{"x":0,"y":3,"value":0},{"x":1,"y":3,"value":0},{"x":2,"y":3,"value":0},{"x":3,"y":3,"value":1},{"x":4,"y":3,"value":1},{"x":5,"y":3,"value":1},{"x":6,"y":3,"value":0},{"x":7,"y":3,"value":0},{"x":8,"y":3,"value":0},{"x":0,"y":4,"value":0},{"x":1,"y":4,"value":0},{"x":2,"y":4,"value":0},{"x":3,"y":4,"value":1},{"x":4,"y":4,"value":1},{"x":5,"y":4,"value":1},{"x":6,"y":4,"value":0},{"x":7,"y":4,"value":0},{"x":8,"y":4,"value":0},{"x":0,"y":5,"value":0},{"x":1,"y":5,"value":0},{"x":2,"y":5,"value":0},{"x":3,"y":5,"value":1},{"x":4,"y":5,"value":1},{"x":5,"y":5,"value":1},{"x":6,"y":5,"value":0},{"x":7,"y":5,"value":0},{"x":8,"y":5,"value":0},{"x":0,"y":6,"value":0},{"x":1,"y":6,"value":0},{"x":2,"y":6,"value":0},{"x":3,"y":6,"value":0},{"x":4,"y":6,"value":0},{"x":5,"y":6,"value":0},{"x":6,"y":6,"value":0},{"x":7,"y":6,"value":0},{"x":8,"y":6,"value":0},{"x":0,"y":7,"value":0},{"x":1,"y":7,"value":0},{"x":2,"y":7,"value":0},{"x":3,"y":7,"value":0},{"x":4,"y":7,"value":0},{"x":5,"y":7,"value":0},{"x":6,"y":7,"value":0},{"x":7,"y":7,"value":0},{"x":8,"y":7,"value":0},{"x":0,"y":8,"value":0},{"x":1,"y":8,"value":0},{"x":2,"y":8,"value":0},{"x":3,"y":8,"value":0},{"x":4,"y":8,"value":0},{"x":5,"y":8,"value":0},{"x":6,"y":8,"value":0},{"x":7,"y":8,"value":0},{"x":8,"y":8,"value":0}]}],"easyGame":[{"values":[{"x":0,"y":0,"value":1},{"x":1,"y":0,"value":1},{"x":2,"y":0,"value":1},{"x":3,"y":0,"value":0},{"x":4,"y":0,"value":0},{"x":5,"y":0,"value":0},{"x":6,"y":0,"value":0},{"x":7,"y":0,"value":0},{"x":8,"y":0,"value":0},{"x":0,"y":1,"value":1},{"x":1,"y":1,"value":1},{"x":2,"y":1,"value":1},{"x":3,"y":1,"value":0},{"x":4,"y":1,"value":0},{"x":5,"y":1,"value":0},{"x":6,"y":1,"value":0},{"x":7,"y":1,"value":0},{"x":8,"y":1,"value":0},{"x":0,"y":2,"value":1},{"x":1,"y":2,"value":1},{"x":2,"y":2,"value":1},{"x":3,"y":2,"value":0},{"x":4,"y":2,"value":0},{"x":5,"y":2,"value":0},{"x":6,"y":2,"value":0},{"x":7,"y":2,"value":0},{"x":8,"y":2,"value":0},{"x":0,"y":3,"value":0},{"x":1,"y":3,"value":0},{"x":2,"y":3,"value":0},{"x":3,"y":3,"value":0},{"x":4,"y":3,"value":0},{"x":5,"y":3,"value":0},{"x":6,"y":3,"value":0},{"x":7,"y":3,"value":0},{"x":8,"y":3,"value":0},{"x":0,"y":4,"value":0},{"x":1,"y":4,"value":0},{"x":2,"y":4,"value":0},{"x":3,"y":4,"value":0},{"x":4,"y":4,"value":0},{"x":5,"y":4,"value":0},{"x":6,"y":4,"value":0},{"x":7,"y":4,"value":0},{"x":8,"y":4,"value":0},{"x":0,"y":5,"value":0},{"x":1,"y":5,"value":0},{"x":2,"y":5,"value":0},{"x":3,"y":5,"value":0},{"x":4,"y":5,"value":0},{"x":5,"y":5,"value":0},{"x":6,"y":5,"value":0},{"x":7,"y":5,"value":0},{"x":8,"y":5,"value":0},{"x":0,"y":6,"value":0},{"x":1,"y":6,"value":0},{"x":2,"y":6,"value":0},{"x":3,"y":6,"value":0},{"x":4,"y":6,"value":0},{"x":5,"y":6,"value":0},{"x":6,"y":6,"value":0},{"x":7,"y":6,"value":0},{"x":8,"y":6,"value":0},{"x":0,"y":7,"value":0},{"x":1,"y":7,"value":0},{"x":2,"y":7,"value":0},{"x":3,"y":7,"value":0},{"x":4,"y":7,"value":0},{"x":5,"y":7,"value":0},{"x":6,"y":7,"value":0},{"x":7,"y":7,"value":0},{"x":8,"y":7,"value":0},{"x":0,"y":8,"value":0},{"x":1,"y":8,"value":0},{"x":2,"y":8,"value":0},{"x":3,"y":8,"value":0},{"x":4,"y":8,"value":0},{"x":5,"y":8,"value":0},{"x":6,"y":8,"value":0},{"x":7,"y":8,"value":0},{"x":8,"y":8,"value":0}]},{"values":[{"x":0,"y":0,"value":-1},{"x":1,"y":0,"value":-1},{"x":2,"y":0,"value":-1},{"x":3,"y":0,"value":-1},{"x":4,"y":0,"value":-1},{"x":5,"y":0,"value":-1},{"x":6,"y":0,"value":-1},{"x":7,"y":0,"value":-1},{"x":8,"y":0,"value":-1},{"x":0,"y":1,"value":-1},{"x":1,"y":1,"value":-1},{"x":2,"y":1,"value":-1},{"x":3,"y":1,"value":-1},{"x":4,"y":1,"value":-1},{"x":5,"y":1,"value":-1},{"x":6,"y":1,"value":-1},{"x":7,"y":1,"value":-1},{"x":8,"y":1,"value":-1},{"x":0,"y":2,"value":-1},{"x":1,"y":2,"value":-1},{"x":2,"y":2,"value":-1},{"x":3,"y":2,"value":-1},{"x":4,"y":2,"value":-1},{"x":5,"y":2,"value":-1},{"x":6,"y":2,"value":-1},{"x":7,"y":2,"value":-1},{"x":8,"y":2,"value":-1},{"x":0,"y":3,"value":-1},{"x":1,"y":3,"value":-1},{"x":2,"y":3,"value":1},{"x":3,"y":3,"value":-1},{"x":4,"y":3,"value":-1},{"x":5,"y":3,"value":-1},{"x":6,"y":3,"value":-1},{"x":7,"y":3,"value":-1},{"x":8,"y":3,"value":-1},{"x":0,"y":4,"value":-1},{"x":1,"y":4,"value":-1},{"x":2,"y":4,"value":-1},{"x":3,"y":4,"value":-1},{"x":4,"y":4,"value":-1},{"x":5,"y":4,"value":-1},{"x":6,"y":4,"value":-1},{"x":7,"y":4,"value":-1},{"x":8,"y":4,"value":-1},{"x":0,"y":5,"value":-1},{"x":1,"y":5,"value":-1},{"x":2,"y":5,"value":-1},{"x":3,"y":5,"value":-1},{"x":4,"y":5,"value":-1},{"x":5,"y":5,"value":-1},{"x":6,"y":5,"value":-1},{"x":7,"y":5,"value":-1},{"x":8,"y":5,"value":-1},{"x":0,"y":6,"value":-1},{"x":1,"y":6,"value":-1},{"x":2,"y":6,"value":-1},{"x":3,"y":6,"value":-1},{"x":4,"y":6,"value":-1},{"x":5,"y":6,"value":2},{"x":6,"y":6,"value":-1},{"x":7,"y":6,"value":-1},{"x":8,"y":6,"value":-1},{"x":0,"y":7,"value":-1},{"x":1,"y":7,"value":-1},{"x":2,"y":7,"value":-1},{"x":3,"y":7,"value":-1},{"x":4,"y":7,"value":-1},{"x":5,"y":7,"value":-1},{"x":6,"y":7,"value":-1},{"x":7,"y":7,"value":-1},{"x":8,"y":7,"value":-1},{"x":0,"y":8,"value":-1},{"x":1,"y":8,"value":-1},{"x":2,"y":8,"value":-1},{"x":3,"y":8,"value":-1},{"x":4,"y":8,"value":-1},{"x":5,"y":8,"value":-1},{"x":6,"y":8,"value":-1},{"x":7,"y":8,"value":-1},{"x":8,"y":8,"value":-1}]}],"hardGame":[{"values":[{"x":0,"y":0,"value":0},{"x":1,"y":0,"value":0},{"x":2,"y":0,"value":0},{"x":3,"y":0,"value":0},{"x":4,"y":0,"value":0},{"x":5,"y":0,"value":0},{"x":6,"y":0,"value":0},{"x":7,"y":0,"value":0},{"x":8,"y":0,"value":0},{"x":0,"y":1,"value":0},{"x":1,"y":1,"value":0},{"x":2,"y":1,"value":0},{"x":3,"y":1,"value":0},{"x":4,"y":1,"value":0},{"x":5,"y":1,"value":0},{"x":6,"y":1,"value":0},{"x":7,"y":1,"value":0},{"x":8,"y":1,"value":0},{"x":0,"y":2,"value":0},{"x":1,"y":2,"value":0},{"x":2,"y":2,"value":0},{"x":3,"y":2,"value":0},{"x":4,"y":2,"value":0},{"x":5,"y":2,"value":0},{"x":6,"y":2,"value":0},{"x":7,"y":2,"value":0},{"x":8,"y":2,"value":0},{"x":0,"y":3,"value":0},{"x":1,"y":3,"value":0},{"x":2,"y":3,"value":0},{"x":3,"y":3,"value":0},{"x":4,"y":3,"value":0},{"x":5,"y":3,"value":0},{"x":6,"y":3,"value":0},{"x":7,"y":3,"value":0},{"x":8,"y":3,"value":0},{"x":0,"y":4,"value":0},{"x":1,"y":4,"value":0},{"x":2,"y":4,"value":0},{"x":3,"y":4,"value":0},{"x":4,"y":4,"value":0},{"x":5,"y":4,"value":0},{"x":6,"y":4,"value":0},{"x":7,"y":4,"value":0},{"x":8,"y":4,"value":0},{"x":0,"y":5,"value":0},{"x":1,"y":5,"value":0},{"x":2,"y":5,"value":0},{"x":3,"y":5,"value":0},{"x":4,"y":5,"value":0},{"x":5,"y":5,"value":0},{"x":6,"y":5,"value":0},{"x":7,"y":5,"value":0},{"x":8,"y":5,"value":0},{"x":0,"y":6,"value":0},{"x":1,"y":6,"value":0},{"x":2,"y":6,"value":0},{"x":3,"y":6,"value":0},{"x":4,"y":6,"value":0},{"x":5,"y":6,"value":0},{"x":6,"y":6,"value":1},{"x":7,"y":6,"value":1},{"x":8,"y":6,"value":1},{"x":0,"y":7,"value":0},{"x":1,"y":7,"value":0},{"x":2,"y":7,"value":0},{"x":3,"y":7,"value":0},{"x":4,"y":7,"value":0},{"x":5,"y":7,"value":0},{"x":6,"y":7,"value":1},{"x":7,"y":7,"value":1},{"x":8,"y":7,"value":1},{"x":0,"y":8,"value":0},{"x":1,"y":8,"value":0},{"x":2,"y":8,"value":0},{"x":3,"y":8,"value":0},{"x":4,"y":8,"value":0},{"x":5,"y":8,"value":0},{"x":6,"y":8,"value":1},{"x":7,"y":8,"value":1},{"x":8,"y":8,"value":1}]}]} \ No newline at end of file