Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,499 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,374 people online right now. Registration is fast and FREE... Join Now!




Draughts/Checkers

 
Reply to this topicStart new topic

Draughts/Checkers

biddy
2 Mar, 2007 - 12:06 PM
Post #1

New D.I.C Head
*

Joined: 26 Jan, 2007
Posts: 12


My Contributions
I am trying to write a simple program that allows players to start a new game of draughts(console application), store the status of the game and allow players to make moves...can anyone please give me tips on how to get started? I have found some info but am finding it hard to understand.... any help is appreciated

include <stdio.h>
#include <conio.h>
#include <math.h>
#include <ctype.h>
#include <graphics.h>
#include <stdlib.h>

/* INITIALIZE ARRAY */
int Status[8][8]={{1,5,1,5,1,5,1,5},{5,1,5,1,5,1,5,1},{1,5,1,5,1,5 ,1,5},{5,0,5,0,5,0,5,0},{0,5,0,5,0,5,0,5},{5,3,5,3 ,5,3,5,3},{3,5,3,5,3,5,3,5},{5,3,5,3,5,3,5,3}};

/* DRAW DAMA BOARD */
void DAMABOARD ()
{
cleardevice();
setcolor(14); settextstyle(SANS_SERIF_FONT,HORIZ_DIR,3);
outtextxy(335,70 ," LET'S PLAY CHECKERS!");
setcolor(10); settextstyle(DEFAULT_FONT,HORIZ_DIR,2);
outtextxy(320,100," ÉÍËÍËÍËÍËÍËÍËÍËÍ»");
outtextxy(320,115,"0º º º º º º º º º");
outtextxy(320,130," ÌÍÎÍÎÍÎÍÎÍÎÍÎÍÎ͹");
outtextxy(320,145,"1º º º º º º º º º");
outtextxy(320,160," ÌÍÎÍÎÍÎÍÎÍÎÍÎÍÎ͹");
outtextxy(320,175,"2º º º º º º º º º");
outtextxy(320,190," ÌÍÎÍÎÍÎÍÎÍÎÍÎÍÎ͹");
outtextxy(320,205,"3º º º º º º º º º");
outtextxy(320,220," ÌÍÎÍÎÍÎÍÎÍÎÍÎÍÎ͹");
outtextxy(320,235,"4º º º º º º º º º");
outtextxy(320,250," ÌÍÎÍÎÍÎÍÎÍÎÍÎÍÎ͹");
outtextxy(320,265,"5º º º º º º º º º");
outtextxy(320,280," ÌÍÎÍÎÍÎÍÎÍÎÍÎÍÎ͹");
outtextxy(320,295,"6º º º º º º º º º");
outtextxy(320,310," ÌÍÎÍÎÍÎÍÎÍÎÍÎÍÎ͹");
outtextxy(320,325,"7º º º º º º º º º");
outtextxy(320,340," ÈÍÊÍÊÍÊÍÊÍÊÍÊÍÊͼ");
outtextxy(320,355," 0 1 2 3 4 5 6 7 ");

setcolor(11); settextstyle(SMALL_FONT,HORIZ_DIR,5);
outtextxy(5,380," Direction:");
outtextxy(5,400," Press a number from 0 to 7, to get the row and column value.");
outtextxy(5,420," Press <ESC> to quit.");


User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/7/09 06:18PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month