Learn

Congratulations! Now you should have a game of Battleship! that is fully functional for one guess.

Make sure you play it a couple of times and try different kinds of incorrect guesses. This is a great time to stop and do some serious debugging.

In the next step, we’ll move on and look at how to give the user 4 guesses to find the battleship.

Instructions

1.

Thoroughly test your game. Make sure you try a variety of different guesses and look for any errors in the syntax or logic of your program.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?