Closed Dash10107 closed 2 weeks ago
Problem: After all the opponent's ships are sunk, the game continues instead of ending, leading to an unresolved game state.
Steps to Reproduce: Play the game until all ships are sunk. Observe that the game does not end and continues despite no ships being left.
Expected Behavior: The game should end and display the result as soon as all ships are sunk.
Suggested Fix: Add a game-over condition that triggers when all ships are sunk, ending the game and displaying a victory or defeat message.
I would like to work on this issue
Problem: After all the opponent's ships are sunk, the game continues instead of ending, leading to an unresolved game state.
Steps to Reproduce: Play the game until all ships are sunk. Observe that the game does not end and continues despite no ships being left.
Expected Behavior: The game should end and display the result as soon as all ships are sunk.
Suggested Fix: Add a game-over condition that triggers when all ships are sunk, ending the game and displaying a victory or defeat message.