first commit

master
unknown 6 years ago
commit d89dd83631

@ -0,0 +1,42 @@
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <string.h>
#define MAXIMUS 19
#define W 0x1177
#define S 0x1f73
#define A 0x1e61
#define D 0x2064
int p[MAXIMUS][MAXIMUS];
char buff[MAXIMUS*2+1][MAXIMUS*4+3];
int Cx,Cy;
int Now;
int wl,wp;
char* showText;
int count;
int bye();
int DoWin(int v);
char* Copy(char* strDest,const char* strSrc)
{
char* strDestCopy = strDest;
while (*strSrc!='\0')
{
*strDest++=*strSrc++;
}
return strDestCopy;
}
void Initialize()
{
int i,j;
showText="";
count=0;
for(i=0;i<MAXIMUS;i++)
{
for(j=0;j<MAXIMUS;j++)
{
p[i][j]=0;
}
}
Cx=Cy=MAXIMUS/2;
Now=1;
}
Loading…
Cancel
Save