{
  "description": [
    "<h1>Around the world</h1>",
    "<p>Have Reeborg go around the world in the",
    "counter-clockwise direction once, and stop",
    "at its starting position. Reeborg must not",
    "step on the grass. The correct path is",
    "shown by the dashed white line.</p>",
    "<h3>What you need to know</h3>",
    "<ul><li>The functions <code>move()</code>, <code>turn_left()</code>, and <code>put()</code>.</li>",
    "DIFFICULTY1",
    "<h2>For more advanced students</h2>",
    "<p>You can write a more general program, having Reeborg decide by ",
    "itself when it had come back to its starting point.</p>",
    "<h3>What you need to know</h3>",
    "<ul><li>The functions <code>move()</code>, <code>turn_left()</code>, and <code>put()</code>.</li>",
    "<li>Either the test <code>front_is_clear()</code> or <code>wall_in_front()</code>, and <code>object_here()</code>.</li>",
    "<li>How to use a <code>while</code> or a <code>repeat/for</code> loop and an <code>if</code> statement.</li>",
    "<li>It might be useful to know how to use the negation of a test (<code>not</code> in Python).</li></ul>",
    "<p>Ideally, you should define your own functions to make your program easier to understand.",
    "<em>Hint: Reeborg carries some tokens; you only need to use one.</em></p>",
    "DIFFICULTY2",
    ""
  ],
  "onload": [
    "var x, y, x_init, width, height, reeborg;",
    "// use almost the same code as around1b.json, but with fixed values",
    "RUR.public['path'] = [];",
    "width = 10;",
    "height = 10;",
    "RUR.set_world_size(width, height);",
    "RUR.fill_background('grass');",
    "x_init = 1;",
    "reeborg = new UsedRobot(x_init, 1);",
    "RUR.give_object_to_robot('token', 500);",
    "for(x = x_init; x <= width; x++) {",
    "    RUR.add_background_tile('gravel', x, 1);",
    "    RUR.public['path'].push([x, 1]);",
    "}",
    "for(y = 2; y<=height; y++) {",
    "    RUR.add_background_tile('gravel', width, y);",
    "    RUR.public['path'].push([width, y]);",
    "}",
    "for(x=width-1; x >= 1; x--) {",
    "    RUR.add_background_tile('gravel',x, height);",
    "    RUR.public['path'].push([x, height]);",
    "}    ",
    "for(y=height-1; y >= 1; y--) {",
    "    RUR.add_background_tile('gravel',1, y);",
    "    RUR.public['path'].push([1, y]);",
    "}",
    "for(x=2; x <= x_init; x++) {",
    "    RUR.add_background_tile('gravel',x, 1);",
    "    RUR.public['path'].push([x, 1]);",
    "}",
    "RUR.state.visible_grid = true;",
    "RUR.show_path(RUR.public['path'], 'white');"
  ],
  "pre": [
    "RUR.show_path(RUR.public['path'], 'rgba(255, 255, 255, 0.5)')",
    ""
  ],
  "post": [
    "RUR.check_path(RUR.public['path'],",
    "     {'failure':\"Reeborg did not follow the required path.\", ",
    "      'success': 'Well done!',",
    "      'show_path': 'true', 'color': 'white'})"
  ],
  "small_tiles": false,
  "rows": 10,
  "cols": 10,
  "tiles": {
    "1,1": [
      "gravel"
    ],
    "1,2": [
      "gravel"
    ],
    "1,3": [
      "gravel"
    ],
    "1,4": [
      "gravel"
    ],
    "1,5": [
      "gravel"
    ],
    "1,6": [
      "gravel"
    ],
    "1,7": [
      "gravel"
    ],
    "1,8": [
      "gravel"
    ],
    "1,9": [
      "gravel"
    ],
    "1,10": [
      "gravel"
    ],
    "2,1": [
      "gravel"
    ],
    "2,2": [
      "grass"
    ],
    "2,3": [
      "grass"
    ],
    "2,4": [
      "grass"
    ],
    "2,5": [
      "grass"
    ],
    "2,6": [
      "grass"
    ],
    "2,7": [
      "grass"
    ],
    "2,8": [
      "grass"
    ],
    "2,9": [
      "grass"
    ],
    "2,10": [
      "gravel"
    ],
    "3,1": [
      "gravel"
    ],
    "3,2": [
      "grass"
    ],
    "3,3": [
      "grass"
    ],
    "3,4": [
      "grass"
    ],
    "3,5": [
      "grass"
    ],
    "3,6": [
      "grass"
    ],
    "3,7": [
      "grass"
    ],
    "3,8": [
      "grass"
    ],
    "3,9": [
      "grass"
    ],
    "3,10": [
      "gravel"
    ],
    "4,1": [
      "gravel"
    ],
    "4,2": [
      "grass"
    ],
    "4,3": [
      "grass"
    ],
    "4,4": [
      "grass"
    ],
    "4,5": [
      "grass"
    ],
    "4,6": [
      "grass"
    ],
    "4,7": [
      "grass"
    ],
    "4,8": [
      "grass"
    ],
    "4,9": [
      "grass"
    ],
    "4,10": [
      "gravel"
    ],
    "5,1": [
      "gravel"
    ],
    "5,2": [
      "grass"
    ],
    "5,3": [
      "grass"
    ],
    "5,4": [
      "grass"
    ],
    "5,5": [
      "grass"
    ],
    "5,6": [
      "grass"
    ],
    "5,7": [
      "grass"
    ],
    "5,8": [
      "grass"
    ],
    "5,9": [
      "grass"
    ],
    "5,10": [
      "gravel"
    ],
    "6,1": [
      "gravel"
    ],
    "6,2": [
      "grass"
    ],
    "6,3": [
      "grass"
    ],
    "6,4": [
      "grass"
    ],
    "6,5": [
      "grass"
    ],
    "6,6": [
      "grass"
    ],
    "6,7": [
      "grass"
    ],
    "6,8": [
      "grass"
    ],
    "6,9": [
      "grass"
    ],
    "6,10": [
      "gravel"
    ],
    "7,1": [
      "gravel"
    ],
    "7,2": [
      "grass"
    ],
    "7,3": [
      "grass"
    ],
    "7,4": [
      "grass"
    ],
    "7,5": [
      "grass"
    ],
    "7,6": [
      "grass"
    ],
    "7,7": [
      "grass"
    ],
    "7,8": [
      "grass"
    ],
    "7,9": [
      "grass"
    ],
    "7,10": [
      "gravel"
    ],
    "8,1": [
      "gravel"
    ],
    "8,2": [
      "grass"
    ],
    "8,3": [
      "grass"
    ],
    "8,4": [
      "grass"
    ],
    "8,5": [
      "grass"
    ],
    "8,6": [
      "grass"
    ],
    "8,7": [
      "grass"
    ],
    "8,8": [
      "grass"
    ],
    "8,9": [
      "grass"
    ],
    "8,10": [
      "gravel"
    ],
    "9,1": [
      "gravel"
    ],
    "9,2": [
      "grass"
    ],
    "9,3": [
      "grass"
    ],
    "9,4": [
      "grass"
    ],
    "9,5": [
      "grass"
    ],
    "9,6": [
      "grass"
    ],
    "9,7": [
      "grass"
    ],
    "9,8": [
      "grass"
    ],
    "9,9": [
      "grass"
    ],
    "9,10": [
      "gravel"
    ],
    "10,1": [
      "gravel"
    ],
    "10,2": [
      "gravel"
    ],
    "10,3": [
      "gravel"
    ],
    "10,4": [
      "gravel"
    ],
    "10,5": [
      "gravel"
    ],
    "10,6": [
      "gravel"
    ],
    "10,7": [
      "gravel"
    ],
    "10,8": [
      "gravel"
    ],
    "10,9": [
      "gravel"
    ],
    "10,10": [
      "gravel"
    ]
  },
  "robots": [
    {
      "x": 1,
      "y": 1,
      "objects": {
        "token": 500
      },
      "model": "classic",
      "_orientation": 0,
      "_is_leaky": true,
      "_prev_x": 1,
      "_prev_y": 1,
      "_prev_orientation": 0,
      "_trace_history": [],
      "_trace_style": "default",
      "_trace_color": "seagreen",
      "__id": 34,
      "possible_initial_positions": [
        [
          1,
          1
        ]
      ]
    },
    {
      "x": 1,
      "y": 1,
      "objects": {},
      "model": "classic",
      "_orientation": 0,
      "_is_leaky": true,
      "_prev_x": 1,
      "_prev_y": 1,
      "_prev_orientation": 0,
      "_trace_history": [],
      "_trace_style": "default",
      "_trace_color": "seagreen",
      "__id": 35
    }
  ],
  "_CORRECT_PATH": [
    [
      1,
      1
    ],
    [
      2,
      1
    ],
    [
      3,
      1
    ],
    [
      4,
      1
    ],
    [
      5,
      1
    ],
    [
      6,
      1
    ],
    [
      7,
      1
    ],
    [
      8,
      1
    ],
    [
      9,
      1
    ],
    [
      10,
      1
    ],
    [
      10,
      2
    ],
    [
      10,
      3
    ],
    [
      10,
      4
    ],
    [
      10,
      5
    ],
    [
      10,
      6
    ],
    [
      10,
      7
    ],
    [
      10,
      8
    ],
    [
      10,
      9
    ],
    [
      10,
      10
    ],
    [
      9,
      10
    ],
    [
      8,
      10
    ],
    [
      7,
      10
    ],
    [
      6,
      10
    ],
    [
      5,
      10
    ],
    [
      4,
      10
    ],
    [
      3,
      10
    ],
    [
      2,
      10
    ],
    [
      1,
      10
    ],
    [
      1,
      9
    ],
    [
      1,
      8
    ],
    [
      1,
      7
    ],
    [
      1,
      6
    ],
    [
      1,
      5
    ],
    [
      1,
      4
    ],
    [
      1,
      3
    ],
    [
      1,
      2
    ],
    [
      1,
      1
    ]
  ],
  "_CORRECT_PATH_COLOR": "white",
  "goal": {
    "possible_final_positions": [
      [
        1,
        1
      ]
    ],
    "position": {
      "image": "house",
      "x": 1,
      "y": 1
    }
  }
}