testes para verificar as alterações feitas
This commit is contained in:
@ -1,10 +1,17 @@
|
|||||||
|
import random
|
||||||
from modules.agente import Agente
|
from modules.agente import Agente
|
||||||
import modules.gui as Gui
|
import modules.gui as Gui
|
||||||
from modules.mapa import Mapa
|
from modules.mapa import Mapa
|
||||||
|
|
||||||
tamanho_mundo: tuple = (30, 30)
|
tamanho_mundo: tuple[int, int] = (30, 30)
|
||||||
|
|
||||||
mapa = Mapa(tamanho_mundo)
|
mapa = Mapa(tamanho_mundo)
|
||||||
mapa.mostrar()
|
mapa.mostrar()
|
||||||
|
|
||||||
Gui.App()
|
# Gui.App()
|
||||||
|
|
||||||
|
pos_y = random.randint(0, tamanho_mundo[0])
|
||||||
|
pos_x = random.randint(0, tamanho_mundo[1])
|
||||||
|
obj_agente: Agente | None = mapa.posicao((pos_y, pos_x))
|
||||||
|
if obj_agente is not None:
|
||||||
|
obj_agente.mostrar()
|
||||||
|
|||||||
Reference in New Issue
Block a user