Skip to content

Commit e958f8e

Browse files
committed
format code
1 parent 91af02b commit e958f8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: report/protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def start_protocol() -> list[dict]:
123123

124124
i: int
125125
puzzle: Puzzle
126-
for (i, puzzle) in enumerate(puzzles):
126+
for i, puzzle in enumerate(puzzles):
127127
for strategy_name, strategy in get_algorithm.items():
128128
print(f"Puzzle n°{i + 1}, strategy = {strategy_name}, mutations = {i + 1}")
129129
Puzzle.counter = 0

Diff for: sliding_puzzle/representation/puzzle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def _goal(n: int, blank_at_first: bool) -> TypePuzzle:
312312
:return: the final state of the game
313313
:rtype: TypePuzzle
314314
"""
315-
full_tiles_goal = list(range(1, n ** 2))
315+
full_tiles_goal = list(range(1, n**2))
316316
full_tiles_goal.insert(0 if blank_at_first else len(full_tiles_goal), 0)
317317
return [full_tiles_goal[x : x + n] for x in range(0, len(full_tiles_goal), n)]
318318

0 commit comments

Comments
 (0)