Hi I'm in the process of creating a chess game and I have a couple of questions..
Code:#include <iostream>
using namespace std;
char *chess_board[8][8];//declare cheesboard a two dimensional array
char *color[2] = {"black", "white"};//declare two colors
char *pieces[16] = {"castle 1", "castle 2", "knight 1", //all pieces
"knight 2", "rooke 1", "rooke 2", "king", "quenn",
"pawn 1", "pawn 2", "pawn 3", "pawn 4", "pawn 5",
"pawn 6", "pawn 7", "pawn 8"};
so I'm trying to have it take the arrays and take say the color array and pieces array and combining them to say black knight 1, white knight 1, etc...
Also I'm wondering if there is another way of going about were i have pawn 1, 2, 3, and having it just pawn but the problem is there are eight on each side...
I am trying to approach this from the AI side once I get the idea.. I felt this was more of a c++ question which is why i posted on the c++ board... any help is always greatly appreciated...
thanks
CJ