samples/99_genre_rpg_roguelike/02_roguelike_line_of_sight/app/main.rb
def thick_line_of_sight start_x, start_y, rise, run, distance, cell_exists_lambda
    result = []
    result += line_of_sight start_x, start_y, rise, run, distance, cell_exists_lambda
    result += line_of_sight start_x - 1, start_y, rise, run, distance, cell_exists_lambda # one left
    result += line_of_sight start_x + 1, start_y, rise, run, distance, cell_exists_lambda # one right
    result
  end
# Calls line_of_sight method to add elements to result collection
Calls line_of_sight method to add elements to result collection
Calls line_of_sight method to add elements to result collection
def thick_line_of_sight start_x, start_y, rise, run, distance, cell_exists_lambda
    result = []
    result += line_of_sight start_x, start_y, rise, run, distance, cell_exists_lambda
    result += line_of_sight start_x - 1, start_y, rise, run, distance, cell_exists_lambda 
    result += line_of_sight start_x + 1, start_y, rise, run, distance, cell_exists_lambda 
    result
  end
def thick_line_of_sight start_x , start_y , rise , run , distance , cell_exists_lambda result = [ ] result += line_of_sight start_x , start_y , rise , run , distance , cell_exists_lambda result += line_of_sight start_x - 1 , start_y , rise , run , distance , cell_exists_lambda result += line_of_sight start_x + 1 , start_y , rise , run , distance , cell_exists_lambda result end
Calls line_of_sight method to add elements to result collection
Calls line_of_sight method to add elements to result collection
# one left # one right
start_x
start_y
rise
run
distance
cell_exists_lambda