samples/13_path_finding_algorithms/07_heuristic_with_walls/app/main.rb
# Checks if the next step button is clicked
# If it is, it pauses the animation and moves the search one step forward
Checks if the next step button is clicked
If it is, it pauses the animation and moves the search one step forward
Checks if the next step button is clicked If it is it pauses the animation and moves the search one step forward
def input_right_button
    if right_button_clicked?
      state.play = false
      state.current_step += 1
      move_searches_one_step_forward
    end
  end
def input_right_button if right_button_clicked? state . play = false state . current_step += 1 move_searches_one_step_forward end end
Checks if the next step button is clicked
If it is, it pauses the animation and moves the search one step forward
Checks if the next step button is clicked If it is it pauses the animation and moves the search one step forward