السلام عليكم انا عم صمم لعبة الدومينو بي لغة سي بس ماعم اعرف كيف ساوي الغراف#include<stdio.h>
#include<iostream.h>
#include<string.h>
#include<graphics.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
#include<time.h>
int actpage;
int hod=0,
sparray[1],
spcount=0,
maxspcount=0,
spsel=0
spselcount=0,
started=0,
timer,
player0, computer=0;
int gamemod;
struct graphparam
{int maxx, maxy;
};
graphparm initgraph()
{ graphparm t;
int gdriver=vga, gmode=1;
initgragph(&gdrive,&gmode,"");
outtextxy(100,50,"graphics driver already loaded");
delay(1000);
t.maxx=getmaxx();
void initrandom()
{
time=trandom_seed;
random_seed = time(null);
srand(random-seed);
}
int getrsdomnum(int nlow, int nhigh)
{
int nrandomvalue;
nrandomvalue = nlow+ rand() %(nhigh - nlow +1)
return nrandomvalue;
}
}
void players(char cplayers){ char cchoice,c,q;
printf("[2] player game\n");
printf("[c] computer vs. player\n");
printf(:[q] quit\n");
do
{preitf("enter your choice: ");
scanf("%c" ,&cchoice);
if(cchoice==2)
printf("2 plyer gema\n");
elseif(cchoice==c)
printf("comuter vs. player\n");
else if(cchoice==q)
printf("quit\n");
else
prentf(invalid\n");
}
switch(cchoice)
{ case 0:
printf("2ply=ayer game\n");
break;
case 2:
printf("computer vs. player\n");
break;
while(cchoice!=2||cchoice!=c||cchoice!=q);
}
main()
{
char cc, c2, cq, cchoice;
printf("welcome to doimino duel!|n|n");
players(cchoice);
}
ارجو المساعدة في تصحيح الأخطاء ولكم جزيل الشكر