Convert math module to static Math class

This commit is contained in:
2026-11-23 10:22:11 +01:00
parent c981572bae
commit 2243557bf5
6 changed files with 865 additions and 861 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ class Sudoku {
return false;
}
}
int $sqrt = (int) sqrt($this->size);
int $sqrt = (int) Math::Sqrt($this->size);
int $boxRowStart = $row - $row % $sqrt;
int $boxColStart = $col - $col % $sqrt;
for(int $w = $boxRowStart; $w < $boxRowStart + $sqrt; $w++) {