lib/nasa_explorer_app/plateau.rb
# Create the graph by storing at as hash with the x,y as key
Create the graph by storing at as hash with the x,y as key
Create the graph by storing at as hash with the x y as key
def _create_graph!
      (0..@max_x).each do |x|
        (0..@max_y).each do |y|
          grid = get_or_create_grid!(x: x, y: y)
          grid.set_neighours!
        end
      end
    end
def _create_graph! ( 0 .. @max_x ) . each do | x | ( 0 .. @max_y ) . each do | y | grid = get_or_create_grid! ( x : x , y : y ) grid . set_neighours! end end end
Create the graph by storing at as hash with the x,y as key
Create the graph by storing at as hash with the x y as key