Compare commits
2 Commits
cd8b94e40c
...
43b1954263
Author | SHA1 | Date | |
---|---|---|---|
43b1954263 | |||
027f237606 |
@ -23,7 +23,7 @@ init python:
|
||||
if (grid % 2 == 1):
|
||||
is_solvable = (inversions % 2 == 0)
|
||||
else:
|
||||
blank_row = grid - (puzzle.index(blank) / grid)
|
||||
blank_row = grid - (puzzle.index(blank) // grid)
|
||||
is_solvable = (inversions % 2 != blank_row % 2)
|
||||
|
||||
too_difficult = (inversions <= difficulty)
|
||||
|
@ -25,10 +25,10 @@ init python:
|
||||
size = surf.get_size()
|
||||
box = tuple(surf.get_bounding_rect())
|
||||
|
||||
if size[0] != 1010:
|
||||
if "/clothes/" in path and size[0] != 1010:
|
||||
ratio = size[0] / 1010
|
||||
box = tuple(v/ratio for v in box)
|
||||
whitespace_dict[path] = box
|
||||
whitespace_dict[path] = tuple(map(int, box))
|
||||
return box
|
||||
|
||||
def crop_image_zoom(path, xsize, ysize, grayscale=False):
|
||||
|
Loading…
x
Reference in New Issue
Block a user