Skip to content

Instantly share code, notes, and snippets.

View edsonmaia's full-sized avatar
🏠
Working from home

Edson Maia edsonmaia

🏠
Working from home
View GitHub Profile
<?php
namespace Alura\Doctrine\Mapping;
use Alura\Doctrine\Entity\Aluno;
use Alura\Doctrine\Entity\Curso;
use Alura\Doctrine\Entity\Telefone;
use Alura\Doctrine\Repository\AlunoRepository;
use LaravelDoctrine\Fluent\EntityMapping;
use LaravelDoctrine\Fluent\Fluent;
@rkTinelli
rkTinelli / foge.h
Last active May 17, 2024 17:14
Jogo FogeFoge (Pacman) Funcional feito em linguagem C
#ifndef _FOGEFOGE_H_
#define _FOGEFOGE_H_
#define CIMA 'w'
#define BAIXO 's'
#define DIREITA 'd'
#define ESQUERDA 'a'
#define BOMBA 'b'
void move_pers(char comando);
#include <stdio.h>
void abertura(int m) {
printf("Tabuada do %d\n\n", m);
}
int main() {
int multiplicador = 2;
@mauricioaniche
mauricioaniche / fogefoge.c
Last active March 15, 2024 19:54
Foge Foge - Versão final
#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;
@mauricioaniche
mauricioaniche / fogefoge.c
Created January 26, 2015 20:19
Foge Foge - Matriz - Final
#include <stdio.h>
#include <stdlib.h>
#include "fogefoge.h"
char** mapa;
int linhas;
int colunas;
void lemapa() {
FILE* f;
@mauricioaniche
mauricioaniche / forca.c
Last active November 26, 2023 17:38
Forca - IO - Parte 3
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "forca.h"
char palavrasecreta[20];
char chutes[26];
int chutesdados = 0;
@mauricioaniche
mauricioaniche / forca.c
Created January 16, 2015 18:34
Forca - IO - Parte 2
#include <stdio.h>
#include <string.h>
char palavrasecreta[20];
char chutes[26];
int chutesdados = 0;
int enforcou() {
int erros = 0;
@mauricioaniche
mauricioaniche / forca.c
Created January 13, 2015 18:06
Forca - Funções - 6
#include <stdio.h>
#include <string.h>
void abertura() {
printf("/****************/\n");
printf("/ Jogo de Forca */\n");
printf("/****************/\n\n");
}
void chuta(char chutes[], int* tentativas) {
@mauricioaniche
mauricioaniche / forca.c
Created January 13, 2015 17:51
Forca - Funções - 4
#include <stdio.h>
#include <string.h>
void abertura() {
printf("/****************/\n");
printf("/ Jogo de Forca */\n");
printf("/****************/\n\n");
}
void chuta(char chutes[], int* tentativas) {
@mauricioaniche
mauricioaniche / forca.c
Created January 12, 2015 19:16
Forca - Capítulo de Funções - 3
#include <stdio.h>
#include <string.h>
void abertura() {
printf("/****************/\n");
printf("/ Jogo de Forca */\n");
printf("/****************/\n\n");
}
void chuta(char chutes[], int* tentativas) {