From 6fcd008c5f6c39cbd2935dee4eebd64b2fafac7e Mon Sep 17 00:00:00 2001
From: Vytor Calixto <vytorcalixto@gmail.com>
Date: Thu, 11 May 2017 11:51:23 -0300
Subject: [PATCH] Add arquivos auxiliares a pasta libs

---
 Makefile                        |  2 +-
 filha.c => libs/filha.c         |  0
 filha.h => libs/filha.h         |  0
 jogador.c => libs/jogador.c     |  0
 jogador.h => libs/jogador.h     |  0
 tabuleiro.c => libs/tabuleiro.c |  0
 tabuleiro.h => libs/tabuleiro.h |  0
 main.c                          | 12 ++++++------
 8 files changed, 7 insertions(+), 7 deletions(-)
 rename filha.c => libs/filha.c (100%)
 rename filha.h => libs/filha.h (100%)
 rename jogador.c => libs/jogador.c (100%)
 rename jogador.h => libs/jogador.h (100%)
 rename tabuleiro.c => libs/tabuleiro.c (100%)
 rename tabuleiro.h => libs/tabuleiro.h (100%)

diff --git a/Makefile b/Makefile
index c9d4265..028fc91 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ test: main
 	chmod +x runTests.sh; \
 	./runTests.sh
 
-main: main.c tabuleiro.o filha.o
+main: main.c libs/jogador.o libs/tabuleiro.o libs/filha.o
 	$(CC) $(CFLAGS) -o $@ $^
 
 clean:
diff --git a/filha.c b/libs/filha.c
similarity index 100%
rename from filha.c
rename to libs/filha.c
diff --git a/filha.h b/libs/filha.h
similarity index 100%
rename from filha.h
rename to libs/filha.h
diff --git a/jogador.c b/libs/jogador.c
similarity index 100%
rename from jogador.c
rename to libs/jogador.c
diff --git a/jogador.h b/libs/jogador.h
similarity index 100%
rename from jogador.h
rename to libs/jogador.h
diff --git a/tabuleiro.c b/libs/tabuleiro.c
similarity index 100%
rename from tabuleiro.c
rename to libs/tabuleiro.c
diff --git a/tabuleiro.h b/libs/tabuleiro.h
similarity index 100%
rename from tabuleiro.h
rename to libs/tabuleiro.h
diff --git a/main.c b/main.c
index d06e60b..44f602f 100644
--- a/main.c
+++ b/main.c
@@ -2,21 +2,21 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <time.h>
-#include "tabuleiro.h"
-#include "jogador.h"
+#include "libs/tabuleiro.h"
+#include "libs/jogador.h"
 
 int main() {
     Tblr t = criaTblr();
-    // Aloca o tabuleiro em um Ășnico array em vez de um "array de arrays"   
+    // Aloca o tabuleiro em um Ășnico array em vez de um "array de arrays"
     if(!leTblr(t)) {
         puts("Erro na leitura do tabuleiro");
         return -1;
     }
     imprimeTblr(t);
 
-    // declara o grafo ponderado e seu primeiro nodo 
-    grafo = criaGrafo(t);
-    if(grafo == NULL)) {
+    // declara o grafo ponderado e seu primeiro nodo
+    Nodo grafo = criaGrafo(t);
+    if(grafo == NULL) {
         puts("Erro na criacao do grafo");
         return -1;
     }
-- 
GitLab