Battleship

This assignment taught me how to create a functioning game Battleship using python. This program heavily used loops in order to work. I created the board using the for loop and made it have 5 iterations. I also used the randint in order for battleships to be randomly be placed on the board. I also used the raw_input command in order to select the spots where I thought the ships would be. Using more loops, the game would end after 3 turns of guessing incorrectly, or correctly guessing the location of the ship. These loops would also tell me if I was outside the board, and if I had already called the location earlier.

battleship10 battleship11 battleship12 battleship13 battleship14 battleship15 battleship16 battleship17 battleship18