diff --git a/Day4/Question1/main.cpp b/Day4/Question1/main.cpp index fc676a8..8c1c345 100644 --- a/Day4/Question1/main.cpp +++ b/Day4/Question1/main.cpp @@ -46,7 +46,7 @@ int main() { // Really convenient that integers are floored x = currentPosition % width; - y = currentPosition / height; + y = currentPosition / width; uint8_t neighbourCount = 0; // Just check for 5 since we know middle is definetly @ always