Skip to content

Instantly share code, notes, and snippets.

View dan-lara's full-sized avatar
💭

Daniel Ferreira Lara dan-lara

💭
View GitHub Profile
@dan-lara
dan-lara / Memory game
Created June 28, 2021 16:45
The classic memory game, can u win?
#include <stdio.h>
#include <stdlib.h>
#include <time.h>//function time()
#include <stdbool.h>
int main(int argc,char *argv[]){
system("color F0");//change the color of the program
char letters[18] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r'},no=' ';
char gab[6][6],vis[6][6],aux[2];
int i=0,j=0,r=0,s=0,jog[2]={0,0},end=0;
int l1,c1,l2,c2;