BANZZAAAIIII / IKT212_Akari_Prolog

0 stars 0 forks source link

Place light #21

Closed Anders-Espenes closed 2 years ago

Anders-Espenes commented 2 years ago

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 = '+'