Place light takes in a tile structure
tile(value(Tile), lines(Lines), walls(Walls))
It checks if value(Tile) is an open variable
It preemptively checks if the tile lines(Lines) hold any lights
It preemptively checks if the tile walls(Walls) have the capacity for another light
It changes the value(Tile) = '*'
It changes the lines(Lines) = '+'
Check if any walls(Walls) conditions have been fulfilled.
Change the remaining empty tiles around the wall = '+'
Place light takes in a tile structure tile(value(Tile), lines(Lines), walls(Walls)) It checks if value(Tile) is an open variable It preemptively checks if the tile lines(Lines) hold any lights It preemptively checks if the tile walls(Walls) have the capacity for another light It changes the value(Tile) = '*' It changes the lines(Lines) = '+' Check if any walls(Walls) conditions have been fulfilled. Change the remaining empty tiles around the wall = '+'