From f9d4bf26a05c376390085fdd5a4ed133def6a0a6 Mon Sep 17 00:00:00 2001 From: Gyan Lakhwani Date: Tue, 6 Oct 2015 15:36:07 +0530 Subject: [PATCH 1/3] Created a favicon And added a page title --- icon.png | Bin 0 -> 663 bytes index.html | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 icon.png diff --git a/icon.png b/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..4ac6aa05eea406c4e44d23965f6a3cf2cf3aeab0 GIT binary patch literal 663 zcmV;I0%-k-P)Px%QAtEWR9FesSHDjbK@|RG**i7|8ic|~DCkUxiN=N!Xtc1hfPVlJ_zN%rS{n-+ z3o8plh$dDRb|wNHi6JoTto7XTz!qwqxZ;ve1~hpJw5`twt&)u zMc1bDE#NEfPF}fFIOE7gFhtk_0wNY=Y)V~#s3%iw#>1;Pots7NCnat?81mZ&19bsm z2yh_3Z$PeGEK0MNdI*w=`yT{2P@75j#m6&ppa<5gr!dQxkml%um)234`T%taENY4& z0LTrGA>s}3^ErK}k${HZ8aqla2P*Z%yVvT{6F_0$yc5AAVTC|$ZKB}>mwLxUbMOPw zYhv~p0?PRHcpCOLlhK7Ss0qsmfeA54$fT`I*T$hMT&*@gIzf4K5@O-W3@wW{*b`51 z7!Tu|0E49k2qOe7urro2LSVwUKLn$je#c!_ETvjqgQSEtUp_J-h1>CxE)`h5qS_{l160zS2yg}0QYdoh|@p4L9JFYQzN{teNjrp0B!zW@LL002ovPDHLkV1ju_C-?vW literal 0 HcmV?d00001 diff --git a/index.html b/index.html index 510eb84..33fff16 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,10 @@ + + + + The experiment + \ No newline at end of file + From 158ea6b72423fe93b3968d282e10fb4248f88d55 Mon Sep 17 00:00:00 2001 From: Gyan Lakhwani Date: Sun, 11 Oct 2015 01:42:19 +0530 Subject: [PATCH 2/3] Added automatic tambola functionality --- tambola.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 tambola.c diff --git a/tambola.c b/tambola.c new file mode 100644 index 0000000..8a6eede --- /dev/null +++ b/tambola.c @@ -0,0 +1,79 @@ +/* +A rudimentary tambola game that plays itself. +*/ + +#include +#include +#include + +void reprint(); +int tic1[10]; +int tic2[10]; +int i=0,j=0; +void main() +{ +int x=0,n=0,p1=0,p2=0,a=0,p=0,done[100]; +srand(time(NULL)); + +while(1) +{ + n++; + done[p]=0;} +clrscr(); +for(j=0;j<100;j=j+10) + { + tic1[i]=((rand())%10)+j; + tic2[i]=((rand())%10)+j; + i++; + } +reprint(); + +for(n=0;n<100;n++) +{ + x=rand()%100; + done[x]=1; + printf("\n\nNUMBER : %d",x); + for(a=0;a<10;a++) + { + if(x==tic1[a]) + { + p1++; + printf("\nP1 has %d.",x); + delay(500); + } + if(x==tic2[a]) + { + p2++; + printf("\nP2 has %d.",x); + delay(500); + } + } + printf("\n"); + for(p=0;p<100;p++) {if (done[p]) printf("%d ",p); + if(p1==10) {printf("\nP1 WINS!!!");getch();exit(0);} + if(p2==10) {printf("\nP2 WINS!!!");getch();exit(0);} + } + delay(200);reprint(); +} +getch(); +} + + +/* reprint */ + + +void reprint() +{ +clrscr(); +printf("\nPlayer 1 : "); +for(i=0;i<10;i++) + { + printf("%d ",tic1[i]); + } + +printf("\nPlayer 2 : "); +for(i=0;i<10;i++) + { + printf("%d ",tic2[i]); + } +} From fdc3c25c88a962b90d47ef0cc134851d4fee5741 Mon Sep 17 00:00:00 2001 From: Sachin Aggarwal Date: Tue, 13 Oct 2015 14:12:53 +0530 Subject: [PATCH 3/3] Return 0 --- c.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/c.c b/c.c index 6771942..d16e9d5 100644 --- a/c.c +++ b/c.c @@ -1,7 +1,8 @@ #include -main() +int main() { printf("Hello World"); - -} \ No newline at end of file + printf("Sachin is smart.") + return 0; +}