Commit 18c957eb

Complete the room detection code (for building walls only, removal is WiP)

Relates to #22

Hi! This fully implements (at least after testing it for a few minutes and everything looked fine) the logic necessary to handle room detection after building new walls.
Below you will see three different scenarios, the first one is how it handles a room that was built on its own, the second case uses one of the existing walls and in the third, arguably most interesting, case is a new wall which separates the existing rooms (at once), which turns two detected rooms into four.

The text below each picture is just a screenshot taken from the log output. Next up, handling the removal of walls, which should be relatively quick and easy with this logic in place already. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *