This program was suppose to make a bingo chess game.. but i am totally clueless.. so far the notes i got was jumbled so i have no clue at all.. anyone mind helping me out?

This is a sample image that it suppose to look like a bit: http://img86.imageshack.us/img86/2594/55923788ip0.jpg

What the program is suppose to do: allows to scroll to next circle and when you press enter it should color the first player as blue and second player as red.. it is suppose to calculate the score for each turn
dimensions are 640x480 and there are 8x8 circles

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
#include<dos.h>

void main ()
{
int gd= DETECT, gm;
int RADIUS, xcoor, ycoor;
int chipos;

clrscr();
initgraph(&gd,gm,"");
Radius = 20; xcoor= 100; ycoor= 140;
chipos=40;
setcolor(7) // lightgray
bar(100,60,180,140);

for (xcoor=100; xcoor,=60; x= x+40)
{
for (ycoor=140; ycoor=560; y=x+40)
{
setcolor (2); // cyan
fillellipse(ycoor, xcoor, Radius, Radius);
}
}
setcolor (RED);
fillellipse (140,60,Radius, Radius);
getch();
closegraph();
}
}

char keys; xloc =8, yloc=1;
row=380; pcolor= REd, sw=1;
key rtn
switch (keys= getch ())
{
case75: setfillstyle (1, BLACK); // left arrow key
fillellipse (prow, pcol, rad, rad);
pcol=pcol-40;
if (pcol<=140)
{
pcol=420;
setfillstyle (1, pcolor)
fillellipse(prow, pcol, rod, rod);
}
setfillstyle (1, pcolor);
fillellipse psc (prow, pcol, rod, rod);
goto key_rtn;

case77: setfillstyle (1, BLACK); // right arrow
fillellipse (prow, pcol, rad, rad);
pcol= pcol+40;
if (pcol >= 420)
{
pcol=140;
setfillstyle (1, pclor);
fillellipse (prow, pcol, rad, rad);
goto key_rtn;

case13: if (sw ==1)
{
pclor = RED;
setfillstyle (1, pcolor);
fillellipse (row, pcol,rad,rad);
row= -40;
sw=2
pcolor= BLUE
}
else
if (sw ==2)
{
PCOLOR = BLUE;
setfillstyle (1, pcolor);
fillellipse (row, pcol, rad, rad);
row= row-40;
sw=1
pcolor = RED;
}
int locator [8] [8];

int chippos [8] [8];
int i,j;
j=8;
chippos[i][j]=
i=1; j=1;
for (col=160; col<=480; col+=30)
for (row=180; row<=400; row+=30)
{
j++
setfillstyle (1,CYAN);
fillellipse (col,row,15,15);
chippos[i][j]=row;
}

i++;
}

Recommended Answers

All 3 Replies

Since I've never heard of Bingo/Chess and have no idea what that means, there's not much I can do from a logic standpoint.

And since there is absolutely no formatting in your code, there is no way I can understand what you have written.

Post enough information about your problem as recommended in Read Me: Read This Before Posting and format your code properly, then more people might be able to help.

There are a lot of syntax errors in your code. You forget to put ' ; '. case77 is not correct to. Maybe ou want case 77 (with space).
The last is that you use goto and it is very bad style so I can't look for running your code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.