Skip to content

Commit

Permalink
Move variable definition outside of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
wdye committed Aug 29, 2018
1 parent 707741c commit 247466e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/performance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def test_empty_cells_vs_solve_time(algorithm: SolutionAlgorithm) -> Iterable[Tri

def test_solve_time(puzzle_strings: List[AnyStr], algorithm: SolutionAlgorithm, trial_tag: AnyStr = '') -> Iterable[Trial]:
results = []
sudoku_type, solver_type = algorithm.value

for i, puzzle_string in enumerate(puzzle_strings):
sudoku_type, solver_type = algorithm.value
sudoku = sudoku_type.from_string(puzzle_string)
empty_cells = Sudoku.GRID_SIZE - len(sudoku.clue_cells)
solver = solver_type(sudoku)
Expand Down

0 comments on commit 247466e

Please sign in to comment.