We have this massive project due tomorrow - a chess game that enables two or more players to play against each other.
We have a board class, that contains a 2D array of Piece object pointers representing the lay area of the board. In the board constructor, the Piece array is populated with the relevant piece pointers, and everywhere where an empty space is to be on the board, that specific pointer in the array is set to point to NULL.
Whenever I try to access the array, I get a segfault. I want to call each piece that the array points to's print function. The print function will print out something like K1 for player 1's king. It's done by calling arrPiecesOnBoard[iRow][iCol]->getPrintString() during a for loop structure that displays the board.
I will post the offending code in the next post.