Question: #include #include #include #include #include chess.h // h9 todo - convert from the indexes in the 2d board array to chess notation, and return //
#include
#include
#include
#include
#include "chess.h"
// h9 todo - convert from the indexes in the 2d board array to chess notation, and return
// a board_location_t variable.
// e.g., (0, 0) is rank='8', file='a'
board_location_t indexes_to_chess_notation(int row, int col) {
board_location_t pos;
// h9 todo - do the conversion
return pos;
}
// h9 todo - convert from chess notation to indexes in the 2d board array
// e.g., rank='1', file='h' is (7, 7)
void chess_notation_to_indexes(board_location_t pos, int *row, int *col) {
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
