Arrays? Not sure what you're meaning is here.Quote:
Originally posted by Sebastiani
Arrays come to mind...
My program is very simple.. a class consisting of an 8x8 char array with '_''s as blank spaces and letters for pieces. The class has a Move() function which takes 4 arguments, x1, y1, x2, and y2. x1,y1 is the starting piece and x2,y2 is the destination. The function checks the coordinates to make sure it is a valid move, and in the if() statement I posted above, those are when the move is valid for a knight.