From 2f5b6f102cf4c00d85bcb2ae032938b55040e9ca Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:15:57 -0400 Subject: [PATCH] feat: both player checks for game to work --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ddac932..60f2684 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,11 @@ int main() { points_list[i].check_collision(points_list); } if(one.check_chain(window.m_board, points_list)) { - std::cout << "Hello" << std::endl; + std::cout << "Player 1 wins!" << std::endl; + running = false; + } + if(two.check_chain(window.m_board, points_list)) { + std::cout << "Player 2 wins!" << std::endl; running = false; } }