Let’s build a Battleship gameOur first attempt......a simplified BattleshipFirst, a high-level designA few more details...Representing the shipsGetting user inputDisplaying the resultsSample game interactionWorking through the pseudocodeOh, before we go any further, don’t forget the HTML!Writing the Simple Battleship codeNow let’s write the game logicStep 1: Setting up the loop, getting some inputHow prompt worksStep 2: Checking the user’s guessSo, do we have a hit?Adding the hit detection codeStep 3: Hey, you sank my battleship!Step 4: Provide some post-game analysisAnd that completes the logic!Doing a little quality assuranceCan we talk about your verbosity...Finishing the Simple Battleship gameHow to assign random locationsThe recipe for generating a random numberA little more QACongrats on your first true JavaScript program, and a short word about reusing code