We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9e3995 commit db93fcdCopy full SHA for db93fcd
solver.py
@@ -1,6 +1,4 @@
1
import numpy as np
2
-import math
3
-import time
4
5
def solve(board):
6
@@ -26,8 +24,8 @@ def solve(board):
26
24
# initialization of variables
27
25
pRow = coords[kTile , 0]
28
qCol = coords[kTile , 1]
29
- quad = [math.floor(pRow/3) * 3,
30
- math.floor(qCol/3) * 3] # 3-by-3 square location
+ quad = [(pRow // 3) * 3,
+ (qCol // 3) * 3] # 3-by-3 square location
31
32
# resetting of discarded value when it's any but the last tile
33
if kTile != emptyTiles - 1:
0 commit comments