Convert math module to static Math class
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user