Objective:
In this assignment, we learned how to step by step create a battleship game with the use of python in Code Academy! While also applying the lists and function rules.
Lists: is a sequential collection of Python data values, where each value is identified by an index. The values that make up a list are called the elements (or items) of that list. The elements in a list can be any type of Python data
Here are some of the steps towards creating this game:
Overall Experience:
When creating this game, one of the hardest problem that I had encounter was in “A Real Win”. I had to add a break under the win condition to end the loop, as it was assigned into the for loop. But for some reason when I wrote it under the win condition I would receive an error, until it finally went through. I believe the problem was the spacing. Everything has to be aligned exactly in order for it to work.