Create a complete UML class diagram for the Battleship Game

Assignment Help Other Subject
Reference no: EM132333553

Assignment - Implementation in Java

The game will be implemented with text prompts, standard output, and an ASCII-art drawing to represent the game progress for the human player. No such representation is needed for the artificial player, as they are the opponent.

Initially when the game starts, there is a welcome message, an empty target grid and automatically populated ocean grid for the human player, and a prompt for the human player to make their first guess. This is shown in attached file.

The game proceeds with the human and artificial players making their guesses in an alternating fashion, until either player has hit all positions of all ships of the opponent. For example, the sample game shown below (after 7 turns have passed) suggests that the human player might have made 3 hits against a length-3 ship, and the artificial player has made one hit against a cruiser.

Task overview -

You are required to complete the tasks in the order below. Do not start a task until the preceding tasks are finished.

Tasks 1-4: UML

Create a complete UML class diagram in Visio 2016 for the Battleship Game. Marks will be awarded for the packages (Task 1) classes (Task 2), enumeration (Task 3) and relationships (Task 4). The marking rubric below gives more details about the components we are expecting.

Task 5: Test scenario 1

Fill in a copy of the test case template (from the Learning Portal) for the test scenario of placing a fleet of ships with one ship only (the Aircraft Carrier, length 5) for the Player.placeFleet() method.

This test scenario must cover the following test cases that generate valid outcomes:

1. Place the ship horizontally.

2. Place the ship vertically.

... and the following test cases that generate invalid outcomes:

3. Place the ship before the start of the grid.

4. Place the ship after the end of the grid.

5. Place the ship such that it is partially in the grid and partially outside of the grid.

Task 6: Test scenario 2

Fill in another copy of the test case template (from the Learning Portal) for the test scenario of placing a fleet of ships with two ships only (the Aircraft Carrier, length 5, and the Battleship, length 4) for the Player.placeFleet() method.

The test scenario must cover a minimum of two test cases that you design yourself. At least one test case must represent a valid outcome and at least on test case must represent an invalid outcome.

Tasks 7-12: Implementation

Implement the BattleshipGame program as a NetBeans 8.2 project using Java 8. Your solution must also include the following general features:

a) Error handling for user input.

b) Consistent code indentation with one level of indentation per block.

c) Code commenting for each class, all methods, and some inline comments.

d) Good naming conventions.

Attachment:- Java Assignment File.rar

Reference no: EM132333553

Questions Cloud

High biodiversity of any particular taxonomic groups : Does it have high biodiversity of any particular taxonomic groups? What are the major conservation areas? Are additional conservation areas planned?
What influential powers do you possess within your team : Leaders command significant power to enable team performance. Using one or more of the teams that you identified in week 1 (UBER COMPANY), write a reflection.
Female gangs-the active involvement of girls in gangs : Female Gangs - Why gang research was so slow to notice the active involvement of girls in gangs?
Discuss the influence of the selected issue : Write a paper (1,250-1,500 words) in which you discuss the influence of the selected issue. Include the following in your paper: A detailed explanation of the.
Create a complete UML class diagram for the Battleship Game : Assignment - Implementation in Java: Create a complete UML class diagram in Visio 2016 for the Battleship Game
What does it take to be living organism : What does it take to be a living organism? Choose a living organism, and explain how it illustrates each of the characteristics of life.
What are some key things you would do in your first session : What are some key things you would do in your first session with a client to get the therapy relationship started in a positive way?
Does your community have nuclear waste to dispose of : Identify three primary types of energy that powers your home as well as all of the homes in your community. Does your community have nuclear waste to dispose of
Describe the importance of empathy and presence : The textbook describes the importance of empathy and presence. What are two or three things that you could do to prepare yourself to be fully present with your.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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