Code found here: https://github.com/Jp21gt/Aquarium/
Game found here: https://puzzle-aquarium.com/
I am trying to replicate the game Aquarium. In this game you have a board of tiles that can be connected into tanks. You fill tiles based on how many tiles are said to be in each row or column. Each tile in a tank with the same height will have the same state, that is filled with water or not.
My code does not properly create these tanks. I have each tank assigned a starter cell, which should then add it’s neighbors if and only if they are not blocked by a wall. Somewhere my logic is wrong and tanks are wildly different than intended.
If you compile my code you will see the board print out, and it visually shows the right borders, but if you type “3 1 fill”, which fills the cell at x=3 and y=1, you will see than many cells are filled, however they should not be a part of this cells tank.
I have been grinding my head against this for awhile, but I still can’t see what my problem is. The main files to look at are AquariumBoard, AquariumCell, and Aquariumtank. All other functions seem to work correctly.
1