feat: added check_line for player win detection
This commit is contained in:
1 parent
18773da6c4
commit
9546b47d82
6 files changed
+47
-14
No files matched your search
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
void Window::update_display(Tile (&tile_list)[9], Border (&border_list)[16]) {
|
||||
for(std::array<char, COL> &row : m_board) { row.fill('.'); }
|
||||
// Modify board
|
||||
|
||||
for(int i = 0; i < 9; i++) {
|
||||
m_board[tile_list[i].m_pos.m_row][tile_list[i].m_pos.m_col] = tile_list[i].m_symbol;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user