Hi!
I'm making a water pipe style game and I'm struggling to figure out how to check whether the pipes are arranged correctly.
I've got booleans for checking if the pipe faces a direction, eg:
(image is a variable to change the appearance of the pipe)
However, I dunno how to check whether the surrounding pipes align (as in if a pipe has a top, check that for the one above hasBottom = true), and how to use this in a loop to check whether there's a full path between the start and end points
public boolean hasTop() { if(image == 0 || image == 3 || image == 4 || image == 7){return true;} else{return false;} }