- Call up Game
- Game gives initial hello
- Game asks Player 1 to place ships
- Get coordinates
- Game asks Player 2 to place ships
- Get coordinates
- Decide who goes first
- This can be a coin toss
- Player one calls shot
- Player two verifies shot
- Does it hit any coordinates of any of the ships
- if yes mark corresponding grid
- Does shot sink ship
- if yes You sank my battleship
- are there ships left
- if yes player 2 turn
- if no game over
- are there ships left
- if yes You sank my battleship
- Does shot sink ship
- if no player 2 turn
- if yes mark corresponding grid
- Player two calls shot
- Player one verifies shot
- Does it hit any coordinates of any of the ships
- if yes mark corresponding grid
- Does shot sink ship
- if yes You sank my battleship
- are there ships left
- if yes player 1 turn
- End of round return to top of loop
- if no game over
- if yes player 1 turn
- are there ships left
- if yes You sank my battleship
- Does shot sink ship
- if yes mark corresponding grid
- Does it hit any coordinates of any of the ships
- Computer prints congratulations text