Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Enchente
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vytor Calixto
Enchente
Commits
2def96df
There was a problem fetching the pipeline summary.
Commit
2def96df
authored
8 years ago
by
Vytor Calixto
Browse files
Options
Downloads
Patches
Plain Diff
Modifica main para ler o tabuleiro e montar o grafo
parent
1fc18936
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.c
+5
-32
5 additions, 32 deletions
main.c
with
5 additions
and
32 deletions
main.c
+
5
−
32
View file @
2def96df
...
...
@@ -3,6 +3,7 @@
#include
<stdio.h>
#include
<time.h>
#include
"libs/tabuleiro.h"
#include
"libs/grafo.h"
int
main
()
{
Tblr
t
=
criaTblr
();
...
...
@@ -11,37 +12,9 @@ int main() {
puts
(
"Erro na leitura do tabuleiro"
);
return
-
1
;
}
imprimeTblr
(
t
);
// // declara o grafo ponderado e seu primeiro nodo
// grafo = criaGrafo(t);
// if(grafo == NULL)) {
// puts("Erro na criacao do grafo");
// return -1;
// }
// // faz o jogador jogar o jogo a partir do tabuleiro dado
// // o retorno do jogador sera um vetor contendo os numeros referentes a menor jogada encontrada por ele
// int *jogadas;
// jogadas = Joga(grafo, t);
Grafo
g
=
criaGrafo
();
tabuleiroParaGrafo
(
t
,
g
);
destroiTblr
(
t
);
destroiGrafo
(
g
);
return
0
;
}
// pilha global
// {
// identificador: "passo"
// valor original
// posição
// }
// {
// identificador: 4
// valor original: 2
// posição: 0,0
// },
// {
// identificador: 5
// valor original: 4
// posição: 0,0 - 0,1 - 1,0 - 2,0
// }
//
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment