Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java, we need to implement and test model classes from my pseudocode, or code that relates to a matching game. Being that my pseudocode

In Java, we need to implement and test model classes from my pseudocode, or code that relates to a matching game. Being that my pseudocode is not all correct, I need help implementing the classes into java.I also need to show the testing of these classes and that they can compile.

Instructions:

The fourth assignment for this course is to implement and test the Model classes from your pseudocode.

For this assignment I would like the following deliverable:

The Java Source for the Model classes, the Test Cases you would use to test the Model classes.

Note: these test cases do NOT need to be JUnit test cases. They can be in pseudocode. What I am looking for is that you understand how you would go about unit testing these classes.

Objective Of Game:

- We want user to match same color tiles until the score to reach is complete.

Overview

- Board is a 5 x 5 matrix.

- Whenever there is a match of three or more same colored tiles, user gains 5 points. If user selects an incorrect match, user losses 5 points. When user reaches 0 points the game must end. If user reaches score objective, then then user is prompted to advance to next round.

- The users ability to match tiles depends on the amount of points he/she has. The more points the user has, the more he/she is able to make moves. If user reaches 0, he/she has ran out of moves and game ends.

- To begin user is automatically prompted with an obvious match to gain 5 points.

Classes you may need include a model class, a view class and a controller class.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

Have issues been prioritized?

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago