Compare commits

..

No commits in common. "43b1954263dff900caa048f5927a4fd2c77b9b3c" and "cd8b94e40ce089529a933637ffddf47089631f20" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ init python:
if (grid % 2 == 1): if (grid % 2 == 1):
is_solvable = (inversions % 2 == 0) is_solvable = (inversions % 2 == 0)
else: else:
blank_row = grid - (puzzle.index(blank) // grid) blank_row = grid - (puzzle.index(blank) / grid)
is_solvable = (inversions % 2 != blank_row % 2) is_solvable = (inversions % 2 != blank_row % 2)
too_difficult = (inversions <= difficulty) too_difficult = (inversions <= difficulty)

View File

@ -25,10 +25,10 @@ init python:
size = surf.get_size() size = surf.get_size()
box = tuple(surf.get_bounding_rect()) box = tuple(surf.get_bounding_rect())
if "/clothes/" in path and size[0] != 1010: if size[0] != 1010:
ratio = size[0] / 1010 ratio = size[0] / 1010
box = tuple(v/ratio for v in box) box = tuple(v/ratio for v in box)
whitespace_dict[path] = tuple(map(int, box)) whitespace_dict[path] = box
return box return box
def crop_image_zoom(path, xsize, ysize, grayscale=False): def crop_image_zoom(path, xsize, ysize, grayscale=False):