Skip to content

Commit 154e902

Browse files
REFACTOR: Mover arquivo cell.py para diretório correto
1 parent bfc3a80 commit 154e902

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

template-simplificado-v2/main2.py src/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Iterable
22

3-
from src.models.cell import Cell
43
from src.models.maze.hashable_2d_maze import Hashable2DMaze
4+
from src.models.problem.maze_2d.cell import Cell
55
from src.models.problem.maze_2d.maze_2d_heuristics import ManhattanCost
66
from src.models.problem.maze_2d.maze_2d_problem import Maze2DProblem
77
from src.models.problem.search_problem import SearchProblem
@@ -20,7 +20,7 @@ def main():
2020
goal = Cell(y=n_lines - 1, x=n_columns - 1)
2121

2222
maze_2d = Hashable2DMaze(n_lines, n_columns, seed, obstacles_percent)
23-
viewer = MazeViewer(start, goal, maze_2d, 10, 2)
23+
viewer = MazeViewer(start, goal, maze_2d, 5, 2)
2424
problem: SearchProblem[Cell] = Maze2DProblem(maze_2d, start, goal)
2525

2626
def on_step_callback(generated: Iterable[Cell], expanded: Iterable[Cell]):

src/models/maze/hashable_2d_maze.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import List, Optional, Tuple, Dict
22

3-
from src.models.cell import CellType, Cell, CellPosition
3+
from src.models.problem.maze_2d.cell import CellType, Cell, CellPosition
44

55

66
class Hashable2DMaze:
File renamed without changes.

src/models/problem/maze_2d/maze_2d_heuristics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from src.functions.distance_2d import calc_euclidian_distance
2-
from src.models.cell import Cell
2+
from src.models.problem.maze_2d.cell import Cell
33
from src.models.search.heuristic_function import HeuristicFunction
44

55

src/models/problem/maze_2d/maze_2d_problem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Iterable, List
22

3-
from src.models.cell import Cell, CellType, CellPosition
43
from src.models.maze.hashable_2d_maze import Hashable2DMaze
4+
from src.models.problem.maze_2d.cell import Cell, CellType, CellPosition
55
from src.models.problem.search_problem import SearchProblem
66

77

src/ui/maze_viewer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import numpy as np
55
from numpy import ndarray
66

7-
from src.models.cell import Cell, CellType
87
from src.models.maze.hashable_2d_maze import Hashable2DMaze
8+
from src.models.problem.maze_2d.cell import Cell, CellType
99

1010

1111
class MazeBlockColors:

0 commit comments

Comments
 (0)