Files
game_theory_of_life/game_theory_of_life.py
2024-09-10 17:38:42 +01:00

19 lines
426 B
Python

import random
from modules.agente import Agente
import modules.gui as Gui
from modules.mapa import Mapa
tamanho_mundo: tuple[int, int] = (30, 30)
mapa = Mapa(tamanho_mundo, aleatorio=True)
mapa.mostrar()
# Gui.App()
print(mapa)
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:
print(obj_agente)