diff --git a/src/main.py b/src/main.py index c3e924c..dc75973 100644 --- a/src/main.py +++ b/src/main.py @@ -49,6 +49,7 @@ for i in range(5): tl.title("Naval Battle 1943") tl.hideturtle() boat = tl.Turtle() +boat.shapesize(3, 3) boat.up(); boat.goto(0,0); boat.left(90) #Enemies @@ -58,6 +59,7 @@ enemies = [] for i in range(AMOUNT_OF_ENEMIES): enemy = tl.Turtle() enemy.up() + enemy.hideturtle() enemy.color("red") pos = [random.choice(posy), random.choice(posy)] enemy.goto((pos[0] - 2) * 100, (pos[1] - 2) * 100) @@ -90,7 +92,9 @@ while win == False: print("errou!") boat.write("Erramos o alvo\n Capitão!",False,align="center") acerto = False + + if len(enemies) <= 0: # tamanho negativo??? + win = True -#Execução -tl.mainloop() +print("Você ganhou!!") tl.exitonclick() \ No newline at end of file