By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,480 Members | 1,711 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,480 IT Pros & Developers. It's quick & easy.

C program

P: n/a
How to create a chess game in C++??
Can anybody send me code for that?

Aug 6 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
#include <cstdlib>

int main()
{
using std::system;
system("C:\\Program Files\\MSN Gaming Zone\\Windows\\Rvsezm.exe");
}
Regards,
Ben
Aug 6 '05 #2

P: n/a
Vilas sade:
How to create a chess game in C++??
Can anybody send me code for that?


Sure,

#include "Chessgame.h"

int main() {

TChessgame cg;
cg.play();
return 0;
}

Tobias
--
IMPORTANT: The contents of this email and attachments are confidential
and may be subject to legal privilege and/or protected by copyright.
Copying or communicating any part of it to others is prohibited and may
be unlawful.
Aug 6 '05 #3

P: n/a
well, you could use an array for representing the bord. For the AI you
might use some tree-searching algorithm to find a good solution. And
you could make it all visible with OpenGl.

OR you could ask a somewhat more specific question

Aug 6 '05 #4

P: n/a
>
Sure,

#include "Chessgame.h"

int main() {

TChessgame cg;
cg.play();
return 0;
}

Tobias


And remember to link with the appropriate library (possibly chessgame.a :-)

Ben
Aug 6 '05 #5

P: n/a
Vilas wrote:

How to create a chess game in C++??
Can anybody send me code for that?


http://www.gnu.org/software/chess/chess.html

--
Karl Heinz Buchegger
kb******@gascad.at
Aug 8 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.