Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer my C language question: Exam 2 : Valencia Battleship Game ( Single Player Game ) You can do this assignment alone or you
Please answer my C language question: Exam
: Valencia Battleship Game
Single Player Game
You can do this assignment alone or you can form groups of
or less students. If you form a group, all names must be in the code. Only one member will submit the project.
You will be divided into teams. Your team will design a program that will be used to play Valencia Battleship. Valencia Battleship is played on a
x
grid The game begins with the five ships
see below
being placed randomly somewhere in the
x
grid You will not know the location of the ships, they will be randomly placed.
The
Ships in the game:
S
Seminole State Ship
Holes
A
Air Force Academy
Holes
V
Valencia Destroyer
Holes
E
Eskimo University
Holes
D
Deland High School
Holes
When the game starts, the screen will look as shown below.
The player will either fire a missile or quit the game. If they fire a missile, you will place an
H
if they hit a ship or an
M
if they miss a ship. You will adjust the missile counters. Once a ship has been sunk, you will replace the
H
in the sunk ship with the letter pertaining to the sunk ship. You will now show the ship as sunk.
Placing Ships
Ships cannot collide with other ships. No overlapping. Ships cannot run off the game board.
MAIN MENU
GAME PLAY
The goal is for the player to sink all ships with while using the least amount of missiles possible. A perfect game will use
missiles
Starts a new game from scratch.
If an previous game was not finish, you can resume here, otherwise inform the user and start a new game
You will show the top
best scores sorted from best to not best. Remember the lower the score the better. You will display the top
scores to both the screen and to a text file named topTenScores.txt
The text file will live in the src folder.
If they quit, you will preserve what needs to be preserved and exit.
See attached Rubric for other requirements
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started