From 5eace5ea46b23e5682195be153744eba1387d9db Mon Sep 17 00:00:00 2001 From: Luis Rodrigues Date: Tue, 24 Sep 2024 19:24:04 +0100 Subject: [PATCH] =?UTF-8?q?eliminar=20c=C3=B3digo=20para=20mostrar=20mapa?= =?UTF-8?q?=20e=20adicion=C3=A1-lo=20ao=20m=C3=B3dulo=20'gui.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game_theory_of_life.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/game_theory_of_life.py b/game_theory_of_life.py index eb5e73b..ce3b434 100644 --- a/game_theory_of_life.py +++ b/game_theory_of_life.py @@ -17,13 +17,7 @@ for pos_y in range(0, mapa.dimensao[0]): tmp_estrategia = random.choice(ModEstrategia.listaNomesEstrategias()) # criar Agente com estrategia aleatoria e colocar na posicao y e x mapa.mundo[pos_y][pos_x] = Agente(tmp_estrategia) -# mostrar mapa com pontuação em cada posição -for pos_y in range(0, mapa.dimensao[0]): - for pos_x in range(0, mapa.dimensao[1]): - tmp_agente: Agente | None = mapa.posicao((pos_y, pos_x)) - if type(tmp_agente) is not None: - print(f"{tmp_agente.estrategia[0]:2}", end='') - print("") + # Gui.App(mapa) Gui.main(mapa)