This commit is contained in:
DarthMooMancer
2025-09-12 22:46:59 -04:00
parent 9d3f6b3308
commit 626d7261d4
4 changed files with 23 additions and 38 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ void Window::update_display(Fruit &fruit, Head &head, Body &body) {
}
}
m_board[head.m_head.m_row][head.m_head.m_col] = '*';
m_board[fruit.m_point.m_row][fruit.m_point.m_col] = 'X';
m_board[fruit.m_point.m_row][fruit.m_point.m_col] = 'o';
for(int i = 0; i < body.m_body.size(); i++) {
m_board[body.m_body.at(i).m_tail_pos.m_row][body.m_body.at(i).m_tail_pos.m_col] = '@';
}