ok im obviously going about this the wrong way. i want to assign a string to place_character and with in the function above assign that string to board[x][y] ie
Code:
int main()
{
char my_string[10] = "hello world", board[8][8];
update_board_array(board, my_string,x,y);
}
void update_board_array(char board[][ROW_MAX + 1], char place_character[10], int x_coordinate, int y_coordinate)
{
board[x_coordinate][y_coordinate] = (((y_coordinate % 2 == 0) && (x_coordinate % 2 == 0)) ||
((y_coordinate % 2 != 0) && (x_coordinate % 2 != 0))) ? place_character : INVALID_SQUARE;
}
only reason i want to do this is so i can highlight the piece selected when the board is refreshed
many thanks
coop