Design a Battleship game
Design a two-player Battleship game played on an N x N grid, where players can place ships, take turns attacking coordinates on the opponent's board, and track hits, misses, and sunk ships until a winner is declared.
Asked at:
Amazon