Java Question

Java Question. InstructionsReview the Assessment Criteria to make sure you understand the criteria for earning your grade for this assignment. Note Javadoc requirement related to comments. In Workshop Six you are ONLY responsible for comments in classes and/or methods modified as a result of the assigned exercise.
Create the workshop folder with name of the form LastnameFirstname Workshop Six.
In the workshop folder, create two folders, one for Chapter 13 and one for the Chapter 14 programming exercise.
An exercise folder contains all files required by and resulting from completion of the assigned exercise. Start with all java files from the respective textbook chapter example folders.
Any exercise that indicates “Write a method called …” presumes that the required method will be included in a fully running program (class). The main method will invoke any required method(s) providing the calling parameters necessary to demonstrate proper function of the method.
Exercises Chapter 13 (13.1, 13.2, and 13.5)These exercises utilize the files in Chapter 13 textbook code examples.
Copy the textbook example code to Chapter 13 exercise folder in the Workshop folder.
Note: it is important to use the example code provided in the classroom. It contains additions to the provided textbook examples that are relevant to the successful completion of the exercise.
Modify the existing toString method to function as required in exercise 13.1.
Modify Test.java to demonstrate this method functions properly.
Develop the shuffling algorithm required in exercise 13.2.The existing Deck.java class contains skeleton code (i.e. basic method specification) for referenced methods. For these exercises we do not require the sorting method skeleton code in the Deck class.
Step 13.2.2 = randomInt
Step 13.2.3 = swapCards
Step 13.2.4 = shuffle

Modify Test.java to fully demonstrate implementation of the shuffle algorithm.
Develop the tie breaking program logic required in exercise 13.5.This is based on successful completion of exercise 13.2.
Make sure you understand the function of the addCard method in Pile class. Does the addCard method follow the basic rule that the cards are placed on the bottom of the player’s pile?

Run the War game multiple times to assure proper function and to encounter a tie.Did you encounter a tie?
How might you test the tie breaking logic without running the game? (this is a basic testing challenge in application development)

Exercise Chapter 14 (14.1, 14.2, and 14.3)These exercises utilize the files in Chapter 14 textbook code examples.
Copy the textbook example code to Chapter 14 exercise folder in the Workshop folder.
Note: it is important to use the example code provided in the classroom. It contains additions to the provided textbook examples that are relevant to the successful completion of the exercise.
Develop the new class extending Player and the improved Player.play method as required in Exercise 14.1.This will demonstrate use of inheritance.
The improved strategy should at a minimum:Always play an eight, if available.
Play the highest rank, if multiple cards can be played.
It can utilize implementation of an alternative to the searchForMatch method.
No other Player class methods need be modified.

Testing will require good analysis; describe and/or document with program output your testing. Save these results to a document in the exercise folder. Note: only student created output need be submitted.

Develop the multiple game play required in Exercise 14.2.Capture the 100 game results for the basic play method.
Capture the 100 game results for basic versus play developed in 14.1.
Save these results to a document in the exercise folder.

(Extra Credit – up to 30 points) Enhance the Eights class as required in Exercise 14.3.In addition to number of games each player wins, one must also accumulate the total points for each player.
Final output will indicate the player name, player type (default or improved play from 14.1), games won,

Java Question

This question has been answered by our writers. You can buy the answer below or order your 0% plagiarized answer