<aside> ‼️ GitHub Classroom Link — Click > here <!

</aside>

📖 Background

While growing up, you may have played the game of Battleship! Battleship is a classic two-player board game which simulates naval warfare. The game revolves around strategy, deduction, and a bit of luck. Each player has their own private grid with various ships placed on it. The objective is to guess the location of the opponent's ships and sink them before they sink yours.

The game board consists of two grids, typically marked by letters for columns and numbers for rows. The grids are often represented by 10x10 squares, but other variations exist. Each player's grid is divided into rows and columns, allowing players to strategically place their ships on their board. The types and sizes of ships can vary, but common examples include the carrier, battleship, destroyer, submarine, and patrol boat.

Players take turns calling out coordinates on the opponent's grid, attempting to hit their ships. The opponent responds with "hit" or "miss" based on the accuracy of the guess. If a hit is recorded, the attacking player marks the location on their own tracking grid to keep track of successful hits.

As the game progresses, players use deduction and logic to narrow down the possible locations of the opponent's ships based on the hits and misses they've observed. Once all the squares of a ship have been hit, it is considered sunk. The first player to sink all of the opponent's ships wins the game.

<aside> 🕹️ If you would like to familiarize yourself with the game, there is a simple, free to play version available at battleshiponline.org.

</aside>

🔀 BattleSalvo, an OOD Twist!

For PA03, you will be implementing a version of Battleship, which we have nicknamed BattleSalvo! There are a few rule changes, which are outlined below.

<aside> 📚 If you need help understanding standard Battleship, this will be a helpful resource: wikihow.com/Play-Battleship

</aside>

<aside> 📚 The slides from class are also available here: https://docs.google.com/presentation/d/1aruXsFgeZwS4_9jHEOi6OtNzdjeTBThL4-80FamEiWQ/view

</aside>

Board Size

BattleSalvo grids, instead of being 10x10, can have height and width dimensions of any value between 6 and 15 (inclusive)! Height and width dimensions do not need to match. For example, 6x10 and 9x6 would both be valid board dimensions for a game. The size of the board for each player, however, must be identical.