From 7f10cb8dc05e6d9c027ed2b1f02b7d80c0bfd28f Mon Sep 17 00:00:00 2001
From: Vytor Calixto <vytorcalixto@gmail.com>
Date: Mon, 12 Jun 2017 12:01:33 -0300
Subject: [PATCH] =?UTF-8?q?Algumas=20mudan=C3=A7as=20na=20profundidade?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 libs/jogador.c    | 4 +++-
 tests/runTests.sh | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libs/jogador.c b/libs/jogador.c
index 91ed395..3f86f45 100644
--- a/libs/jogador.c
+++ b/libs/jogador.c
@@ -17,7 +17,9 @@ Lista Joga(Grafo g, Lista grupo){
         int altura = calculaAltura(g, grupo);
 
         int naoConsumidos = tamanhoLista(g->vertices) - tamanhoLista(grupo);
-        int profundidade = (sqrt(max) * (sqrt(altura) / sqrt(min)) * 1); //(altura/sqrt(naoConsumidos)));
+        double razao = (altura/sqrt(naoConsumidos));
+        int profundidade = (sqrt(max) * (sqrt(altura) / sqrt(min)) * razao);
+        if(profundidade < 1) profundidade = 1;
 
         Lista filhos = filhosGrupo(grupo);
 
diff --git a/tests/runTests.sh b/tests/runTests.sh
index 6da7fb7..42978d0 100755
--- a/tests/runTests.sh
+++ b/tests/runTests.sh
@@ -23,7 +23,7 @@ echo $HEUR
 tempo_max=120000 #120s
 
 # tamanhos do tabuleiro
-tams=(3 4 8 16)
+tams=(8 16 32)
 
 # lista de cores
 cores=(2 3 4 6 8 10)
-- 
GitLab