Question: Java Code up a single player version of battleship: o Attached is a zip file containing 20 random configurations for the 5, 4, 3 ,3,
Code up a single player version of battleship: o Attached is a zip file containing 20 random configurations for the 5, 4, 3 ,3, and 2 sized boats. When your program starts, randomly choose one of the files to use (0's are used for empty spots, 1's for boat locations). o You need to display the user's guesses (Not guessed, Hit, Misses) and how many guesses they have made. o Continue to play until they have made all their hits (you can count how many hits they have made). o When all hits are made display how many guesses it took Code up a single player version of battleship: o Attached is a zip file containing 20 random configurations for the 5, 4, 3 ,3, and 2 sized boats. When your program starts, randomly choose one of the files to use (0's are used for empty spots, 1's for boat locations). o You need to display the user's guesses (Not guessed, Hit, Misses) and how many guesses they have made. o Continue to play until they have made all their hits (you can count how many hits they have made). o When all hits are made display how many guesses it took
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
