Merge and remove unused imports.
This commit is contained in:
commit
97cb1f2d9d
@ -1,8 +1,7 @@
|
|||||||
import pygame as pg
|
import pygame as pg
|
||||||
import time
|
|
||||||
from pygame.locals import *
|
|
||||||
from UI.grid import Grid, Node
|
from UI.grid import Grid, Node
|
||||||
|
|
||||||
|
|
||||||
class Window():
|
class Window():
|
||||||
def __init__(self, grid: Grid):
|
def __init__(self, grid: Grid):
|
||||||
pg.init()
|
pg.init()
|
||||||
|
5
main.py
5
main.py
@ -1,6 +1,3 @@
|
|||||||
import pygame as pg
|
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
from UI.grid import Grid
|
from UI.grid import Grid
|
||||||
from UI.window import Window
|
from UI.window import Window
|
||||||
|
|
||||||
@ -9,7 +6,7 @@ def main():
|
|||||||
# initialize grid
|
# initialize grid
|
||||||
grid = Grid(20, 20)
|
grid = Grid(20, 20)
|
||||||
# initialize window
|
# initialize window
|
||||||
Window(grid)
|
Window(grid)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user