code refactor

This commit is contained in:
matixezor 2021-05-18 00:03:42 +02:00
parent 1763cbc234
commit 54bcc2036a
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import os
import pygame as pg
from image import Image

View File

@ -1,11 +1,10 @@
import string
from typing import Union
from pygame import image
class Image:
def __init__(self, parent: int, name: string, img: image, mine_type: Union[str, None]):
def __init__(self, parent: int, name: str, img: image, mine_type: Union[str, None]):
self.parent = parent
self.img = img
self.mine_type = mine_type

View File

@ -1,8 +1,8 @@
import queue
from typing import List
from search_algoritms.node import Node
from src.tile import Tile
from search_algoritms.node import Node
from .helpers import successor, get_path_actions

View File

@ -1,7 +1,7 @@
from typing import List, Tuple
from search_algoritms.node import Node
from src.tile import Tile
from search_algoritms.node import Node
from .helpers import successor, get_path_actions_a_star, calculate_priority