Grid administration

layout

A1 B1 C1 D1
A2
A3
A4 D4

Explanation grid

  • 0: Obstacle
  • 1: Free air space

example hardcoded int grid
    private int[][] grid = {{ 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 },
            { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1 } };