Battleship!

in this assignment we were to create a battleship game in code academy. We had to guess the row and column and it would tell us whether we missed the battleship or not. We also had to make sure that the code would let you know if you missed the ship. We had to use our knowledge of lists and functions.

#10

#10

battleship-11

#11

battleship-12

#12

battleship-13

#13

battleship-14

#14

battleship-15

#15

battleship-16

#16

battleship-17

#17

battleship-18

#18

battleship-19

#19

While doing the assignment on problem i faced was it would give me error “It looks like your game does not change the O to a capital X for an incorrect guess.” When i  used 1 and 2. Even thought the O did change to an X.

By: Simran Sandhu