This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define NUMERO_DE_TENTATIVAS 3 | |
int main() { | |
printf("************************************\n"); | |
printf("* Bem vindo ao Jogo de Adivinhação *\n"); | |
printf("************************************\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#include "forca.h" | |
char palavrasecreta[TAMANHO_PALAVRA]; | |
char chutes[26]; | |
int chutesdados = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include "time.h" | |
#include "fogefoge.h" | |
#include "mapa.h" | |
#include "ui.h" | |
MAPA m; | |
POSICAO heroi; | |
int tempilula = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include "fogefoge.h" | |
char** mapa; | |
int linhas; | |
int colunas; | |
void lemapa() { | |
FILE* f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#include "forca.h" | |
char palavrasecreta[20]; | |
char chutes[26]; | |
int chutesdados = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import builtins | |
input_values = [] | |
print_values = [] | |
def mock_input(s): | |
print_values.append(s) | |
return input_values.pop(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() { | |
char palavrasecreta[20]; | |
sprintf(palavrasecreta, "MELANCIA"); | |
int acertou = 0; | |
int enforcou = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\chapter{Exercícios} | |
\label{ape:exercicios} | |
Os exercícios são os mesmos para todos os grupos. O participante, em caso de dúvidas, poderá perguntar ao pesquisador. | |
\section{Lembrete ao participante} | |
Caro participante, | |
Lembre-se que os problemas aqui propostos simulam complicações do mundo real. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// incluindo as bibliotecas | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
// definindo as constantes | |
#define NUMERO_DE_TENTATIVAS 3 | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
// imprime cabecalho do nosso jogo | |
printf("******************************************\n"); | |
printf("* Bem vindo ao nosso jogo de adivinhação *\n"); | |
printf("******************************************\n"); | |
int numerosecreto = 42; |
NewerOlder