Skip to content

User Story 2, Bathula

priyankb edited this page Mar 18, 2017 · 1 revision

The Card

As a user, I want a hard computer setting that places its ships randomly and that fires at my ships in a smart and challenging manner.

The Conversation

  1. Have the ships be placed randomly each time the game has begun.
  2. Have the firing mechanism be able to guess where the rest of the ship is located once it is hit.

The Confirmation

  1. Verify that the ships are placed at random. To test this we can simply refresh the page and place our ships once again and the computer should place its ships at different locations every time.
  2. Verify that the computer is able to detect where the next ship coordinate is located. We can test this with the use of the scan function to check the adjacent coordinates. If another coordinate is found the computer will fire on its next turn at that location. If not, then the computer will fire anywhere on the player's board.
Clone this wiki locally