Skip to content

Commit dbfdeef

Browse files
authored
Update Board.cc
1 parent 9fc191c commit dbfdeef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Board.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ void Board::removePlayer(int position, std::string playerName) {
149149
char symbol = playerName[0];
150150
for (int i = 1; i < 9; i += 2) {
151151
if (board[position][4][i] == symbol) {
152-
board[oldPosition][4][i] = ' ';
152+
board[position][4][i] = ' ';
153153
}
154154
}
155155

156156
for (int i = 1; i < 9; i += 2) {
157-
if (board[oldPosition][5][i] == symbol) {
158-
board[oldPosition][5][i] = ' ';
157+
if (board[position][5][i] == symbol) {
158+
board[position][5][i] = ' ';
159159
}
160160
}
161161
}

0 commit comments

Comments
 (0)