From a6146abc8f500e1ecacf6118735631b3256edf92 Mon Sep 17 00:00:00 2001 From: Luis Rodrigues Date: Tue, 10 Sep 2024 11:32:05 +0100 Subject: [PATCH] =?UTF-8?q?testes=20para=20verificar=20as=20altera=C3=A7?= =?UTF-8?q?=C3=B5es=20feitas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game_theory_of_life.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/game_theory_of_life.py b/game_theory_of_life.py index 1329149..32bb9a0 100644 --- a/game_theory_of_life.py +++ b/game_theory_of_life.py @@ -1,10 +1,17 @@ +import random from modules.agente import Agente import modules.gui as Gui from modules.mapa import Mapa -tamanho_mundo: tuple = (30, 30) +tamanho_mundo: tuple[int, int] = (30, 30) mapa = Mapa(tamanho_mundo) 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()