Reference no: EM132317407
Object Oriented Programming Fundamentals Assignment -
Task and Deliverables -
You're required to submit the report and source code in hardcopy. And upload the report, source code and full documentation generated by javadoc (zip in one file) to the eLearn. Only the team leader need to do the submission.
Any report without the cover page and marking scheme page and any name which is not stated in the report cover or without signature will not be honoured any marks.
The hardcopy report submission should include:
- Cover page and marking scheme.
- Class diagram for each class in the system;
- Class relationship diagram showing the relationships between all the classes in the system, such as inheritance, composition, etc;
- Screenshots with description to show the functionality and test results.
- Source code.
- Documentation generated by Javadoc (first page only).
Question -
You're required to build a game 'Find-The-Battleship' in Java program that fulfil the below requirements/rules. Analyze and develop the Java program as per described using the Object Oriented design. You should design your program for optimum maintainability and reusability with the best practices of object oriented techniques you've learnt. You also need to document your design using the UML class and class relationship diagrams.
The game rules:
The mission of the player that plays the game is to find the battleship of your enemy through a masked out map. Each ship can have a variance of 3-5 characters' length.
The game should have a 20 rows x 60 columns size, which you should masked the area with the character '#'.
The game should allow player to choose among 3 stages of difficulties which contain different number of ships, traps and potions. For example:
- Beginner: 80 ships, 10 traps, 18 potions.
- Intermediate: 50 ships, 20 traps, 18 potions.
- Advance: 20 ships, 30 traps, 18 potions.
There are two types of trap:
- Low danger trap: which will reduce life by 1.
- High danger trap: which will reduce life by 2.
Your game should contain the mixture low and high danger traps.
And, there is three types of potions:
- Life saver potion: which can increase the life by 1
- Trap reveal potion: which will reveal a trap
- Ship reveal potion: which will reveal a ship
For each game, you should have a mixture of each type of potions.
Once the game started, all the ships, traps and potions will be scattered randomly in the map and should not be visible to the player.
The player is required to choose the location to unmask by coordinates (row, col), and should not be processed if the location is out of the map's boundary.
If it is a ship at that location, unmask the whole ship. If it is a trap, reduce the life accordingly; and if it is a potion, process accordingly based on the type of potion.
Each player will have 15 lives. The screen should display the number of lives left and ships found while the game progress.
Game will end when player successfully find 5 ships without exhausted all their lives, or game will end if player has no remaining lives.
When the game start, display the Top 10 scores and ask the player for the name. You should count the total steps the player takes along the games. If the player successfully completes the game, and the score is within the top 10 scores, store the player's score and name in the Top 10 score text file. The list should be ordered by score in descending order.
Attached some sample screenshots of the game (you are allowed to have variances of display design, arrangement or style, as long as it fulfilled the game requirement as stated above).
Attachment:- Assignment File.rar
What can we say about general trends in societal development
: How does the relation between instrumental and ceremonial motives change in stable environments? Based on this, what can we say about general trends.
|
Evaluation of the fortify on demand code analysis software
: M5A2 - Exploring the Static Analysis Tool - evaluation of the Fortify On Demand Code Analysis software that includes a screen shot of the report and the sample
|
Compute the total material cost in cost of goods sold
: Headland Mining Company purchased land on February 1, 2017, at a cost of $1,127,500. It estimated that a total of 56,400 tons of mineral was available.
|
Find the total manufacturing costs incurred
: Baltimore Manufacturing had a Work in Process balance of $87,000 on January 1, 2018. The year end balance of Work in Process was $57,000.
|
Build a game Find-The-Battleship in Java program
: PRG1203: Object Oriented Programming Fundamentals Assignment - Sunway University, Malaysia. Build a game Find-The-Battleship in Java program
|
What you started in the discussion board
: you will expand upon what you started in the Discussion Board. You will expand on risks identified in the Discussion Board and describe how you will handle them
|
Calculate the amount of beginning work-in-process inventory
: During FY 2018 Bay Manufacturing had total manufacturing costs are $412,000. Their cost of goods manufactured for the year was $481,000.
|
Collaborative behavior is essential role of management
: Working with organizations to improve the interactions of members and increase productivity through collaborative behavior is an essential role of management.
|
Calculate the amount of overhead over or under applied
: During March 2019, Alaska Corporation recorded $269,000 of costs related to factory overhead. Alaska's overhead application rate is based on direct labor hours.
|