Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
paciencia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Matheus Rotondano De Camargo
paciencia
Commits
94bc2fba
Commit
94bc2fba
authored
8 years ago
by
Matheus Rotondano De Camargo
Browse files
Options
Downloads
Patches
Plain Diff
Upload new file
parent
41785b94
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesa.h
+32
-0
32 additions, 0 deletions
src/mesa.h
with
32 additions
and
0 deletions
src/mesa.h
0 → 100644
+
32
−
0
View file @
94bc2fba
#ifndef H_MESA_H
#define H_MESA_H
#include
"baralho.h"
Carta
verificaTopo
(
Monte
deck
,
Baralho
bar
);
void
troca_periferia
(
Monte
mesa
[
24
],
int
i
,
int
ir
,
int
j
,
int
jr
);
void
embaralha_periferia
(
Monte
mesa
[
24
]);
void
inicializa_mesa
(
Monte
mesa
[
24
]);
void
cria_blocos_centrais
(
Monte
mesa
[
24
]);
void
distribui_periferia
(
Monte
mesa
[
24
],
Baralho
bar
,
int
cartas_restantes
);
int
segundos
(
tm
*
myTime
);
void
imprime_tabuleiro
(
Monte
mesa
[
24
],
Baralho
bar
);
int
converte_minutos
(
int
tempo
);
int
jogada_possivel_ori
(
Monte
mesa
[
24
],
Carta
busca_ori
,
Baralho
bar
);
int
posicao_ori
(
Monte
mesa
[
24
],
Carta
busca
,
Baralho
bar
);
int
jogada_possivel_dest
(
Monte
mesa
[
24
],
Carta
mao_ori
,
Carta
busca_dest
,
Baralho
bar
);
int
posicao_dest
(
Monte
mesa
[
24
],
Carta
busca_dest
,
Baralho
bar
);
int
ganhou
(
Monte
mesa
[
24
],
Baralho
bar
);
void
insere_ordenado
(
int
*
v
,
int
a
,
int
b
);
void
ins_sort
(
int
*
v
,
int
a
,
int
b
);
void
analiza_tempo
(
FILE
*
entrada
,
int
inicio
,
int
atual
);
void
reseta_baralho
(
Carta
baralho
[]);
void
recolhe_periferia
(
Carta
mesa
[][
24
],
Carta
baralho
[],
int
cartas_restantes
);
void
reseta_mesa
(
Carta
mesa
[][
24
]);
void
imrpime_melhores_tempos
(
FILE
*
placar
);
int
numero_do_save
();
void
salva_jogo
(
Monte
mesa
[
23
],
Baralho
bar
,
int
modo
,
int
embaralhamentos
,
int
tempo_de_jogo
,
int
atual
,
int
inicio
,
int
saveNum
,
int
perdeu
);
void
carrega_jogo
(
Monte
mesa
[
23
],
Baralho
bar
,
int
*
modo
,
int
*
embaralhamentos
,
int
*
tempo_de_jogo
,
int
*
atual
,
int
*
inicio
,
int
saveNum
,
int
*
perdeu
);
int
saves_encontrados
();
#endif
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