samples/13_path_finding_algorithms/02_detailed_breadth_first_search/app/main.rb
def render_right_button
    # Draws the gray button, and a black border
    # The border separates the buttons visually
    outputs.solids  << [buttons.right, gray]
    outputs.borders << [buttons.right, black]

    # Renders an explanatory label in the center of the button
    # Explains to the user what the button does
    label_x = buttons.right.x + 10
    label_y = buttons.right.y + 35
    outputs.labels  << [label_x, label_y, "Step forward >"]
  end
# Renders the button which steps the search forward
# Shows the user where to click to move the search forward
Renders the button which steps the search forward
Shows the user where to click to move the search forward
Renders the button which steps the search forward Shows the user where to click to move the search forward
def render_right_button
    outputs.solids  << [buttons.right, gray]
    outputs.borders << [buttons.right, black]
    label_x = buttons.right.x + 10
    label_y = buttons.right.y + 35
    outputs.labels  << [label_x, label_y, "Step forward >"]
  end
def render_right_button outputs . solids << [ buttons . right , gray ] outputs . borders << [ buttons . right , black ] label_x = buttons . right . x + 10 label_y = buttons . right . y + 35 outputs . labels << [ label_x , label_y , "Step forward >" ] end
Renders the button which steps the search forward
Shows the user where to click to move the search forward
Renders the button which steps the search forward Shows the user where to click to move the search forward
# Draws the gray button, and a black border # The border separates the buttons visually # Renders an explanatory label in the center of the button # Explains to the user what the button does