-
Notifications
You must be signed in to change notification settings - Fork 2
User Stories
Mark Bereza edited this page Mar 20, 2017
·
11 revisions
- User Story: As a player, I want the ability to compete against an opponent that can give me a different game experiance each time I play.
- Conversation: Placing a ship efficiently is making the computer randomly place ships on the game board with without placing ships on top of each other, or outside of the board, as well as making the computer have a different gameboard each game.
- Confirmation: When a game is created three different times, the ship placement for computers shall be different each time.
- User Story: As a player I want to be able to increase the difficulty of the game in hard mode and have the Computer play with increased difficulty so that the game is more challenging.
- Conversation: Computer will play with increased ability by attempting to shoot at a ship until it is sunk.
- Confirmation: When the computer hits a ship it will begin firing at an adjacent square, if it hits again it will continue firing that direction until a ship is sunk.
- User Story: As a player, I want my opponent, the computer, to fire in a pattern, so that it can simulate a more realistic opponent.
- Conversation: Computer will fire in a pattern that could cause it to win the game.
- Confirmation: The computer's shots will show some sort of visible pattern that could result in winning the game.
- Feature Pseudo-code Implementation Feature Pseudo-code Implementation by Mark Bereza
- User Story: I want the computer to have even more intelligence by try to fire in the opposite direction once line firing has failed in the first.
- Conversation: When a computer fires, hits, and fires again and hits again, it will continue firing in that "direction" until it encounters a previous hit, a previous miss, or the edge of the board. Now, the computer will keep firing past previous hits in a line, and will backtrack when encountered a previous miss or the edge of the board and start firing in a line in the opposite direction until the ship is sunk.
- Confirmation: The computer will fire in a line in both directions until either the ship is sunk or it finds misses on both sides (rare edge case).