Build a game Find-The-Battleship in Java program

Assignment Help JAVA Programming
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

Reference no: EM132317407

Questions Cloud

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.

Reviews

len2317407

6/6/2019 2:20:22 AM

This assignment will contribute 20% to your final grade. This is a group (maximum 5 students) assignment. The University requires students to adhere to submission deadlines for any form of assessment. Penalties are applied in relation to unauthorized late submission of work. Coursework submitted after the deadline but within 1 week will be accepted for a maximum mark of 40%. Work handed in following the extension of 1 week after the original deadline will be regarded as a non-submission and marked zero.

len2317407

6/6/2019 2:20:17 AM

Marking Scheme - Design - Use of good object-oriented design to create appropriate classes and their relationship. Good UML class and class relationship diagrams 10 marks. Coding - Fulfil all the functionalities and align to the design. User-friendliness of the system, with appropriate Exception Handling, follow the programming best practices. Good Javadoc documentation and screenshots to show the functionalities and test results 10 marks.

Write a Review

JAVA Programming Questions & Answers

  Writing a program to have it generate random words

How would I go about writing a program to have it generate random words with a letter missing for a child to guess? Maybe it would have three letters, then four, next five, and so on until maybe 10 letters. Please keep in mind that I'd like it to wor..

  Write all data from the parallel arrays

Write all data from the parallel arrays back to the three data files.

  Implements both the quicksort and mergesort algorithms

Write a program that correctly implements both the Quicksort and Mergesort algorithms. The program should generate an array of 500 random numbers in the 1-100 range. The program should sort the same set of numbers and keep time stamps of how long it ..

  Implement a program to reverse the digits

Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321.

  Create an application for disney''s cottages

Create an application for Disney's Cottages, a weekend getaway resort that rents cottages and boats to use on the local lake

  Write a java program consisting of pigdriver and pig

You will write a Java program consisting of PigDriver and Pig.java, that must Display a welcome message, "Let's Play Pig", Display a blank line and Prompt for the name of the human player.

  Build an android application to execute some of the queries

Build an android application to execute some of the queries -

  Redundant-highly available dhcp solution

What are the three methods that provide a redundant/highly available DHCP solution?

  Part iyou have to write a computer program that will figure

part iyou have to write a computer program that will figure out the total of an order when given the amount of the

  In this project you need to write a program called

in this project you need to write a program called ecc.javato implement elliptic curve

  Develop and test a small java program

ITECH1000/5000 Programming 1 Semester 1 2017 - develop and test a small Java program using object-oriented approaches.

  Object-oriented programming design

In object-oriented programming design, such as in Java, your program often consists of two or more classes

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd