diff --git a/src/input.cpp b/src/input.cpp index cfd98fb..1957ca9 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -8,30 +8,50 @@ void Input::get_input(bool &running, Player &one, Player &two, std::vectorinput_tile(0, points); + active->m_turn = false; + inactive->m_turn = true; break; case 50: - one.input_tile(1, points); + active->input_tile(1, points); + active->m_turn = false; + inactive->m_turn = true; break; case 51: - one.input_tile(2, points); + active->input_tile(2, points); + active->m_turn = false; + inactive->m_turn = true; break; case 52: - one.input_tile(3, points); + active->input_tile(3, points); + active->m_turn = false; + inactive->m_turn = true; break; case 53: - one.input_tile(4, points); + active->input_tile(4, points); + active->m_turn = false; + inactive->m_turn = true; break; case 54: - one.input_tile(5, points); + active->input_tile(5, points); + active->m_turn = false; + inactive->m_turn = true; break; case 55: - one.input_tile(6, points); + active->input_tile(6, points); + active->m_turn = false; + inactive->m_turn = true; break; case 113: running = false; diff --git a/src/window.cpp b/src/window.cpp index 33626c2..bc17ce8 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -6,7 +6,7 @@ void Window::update_display(std::vector &points_list) { for(std::array &row : m_board) { row.fill('.'); } for(int i = 0; i < points_list.size(); i++) { - m_board[points_list[i].m_row][points_list[i].m_col] = '*'; + m_board[points_list[i].m_row][points_list[i].m_col] = points_list[i].m_symbol; } std::cout << "\033[H" << std::flush;