Skip to content

Instantly share code, notes, and snippets.

@timothyylim
Last active October 24, 2015 11:02
Show Gist options
  • Save timothyylim/20235cd51658a0d841d8 to your computer and use it in GitHub Desktop.
Save timothyylim/20235cd51658a0d841d8 to your computer and use it in GitHub Desktop.
bool test_move(const char *position, const int digit, char board[9][9]){
int row = convert_character_to_int((char) position[0]);
int col = position[1] - '0';
cout << board[row-1][col-1] << endl;
board[col-1][row-1] = '1';
cout << board[row-1][col-1] << endl;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment