Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 1 : Three Musketeers Description This assignment s major learning goal is object oriented design in Java Design basic classes Each class must be

Assignment 1: Three Musketeers
Description
This assignments major learning goal is object oriented design in Java
Design basic classes
Each class must be small and do one thing (Single Responsibility Principle)
The design must start from abstractions (Dependency Inversion)
Must use inheritance, composition, and polymorphism
We will make use of the Three Musketeers Board game. This game is played on a 5x5 square board:
Starter Board
| A B C D E
+
1| O O O O X
2| O O O O O
3| O O X O O
4| O O O O O
5| X O O O O
MUSKETEER - A musketeer moves to an adjacent (just orthogonal) cell occupied by a guard (capturing it).
GUARD - A guard moves to an adjacent (just orthogonal) empty cell.
TURNS - On the first turn the musketeer side moves. Then, turns alternate.
GOAL - The musketeer wins if they cannot make a valid move and the 3 musketeers are not on the
same row or column. The guard wins if the 3 musketeers are on the same row or column.
Example: Guards turn

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

What are the role of supervisors ?

Answered: 1 week ago

Question

8. Explain the difference between translation and interpretation.

Answered: 1 week ago

Question

10. Discuss the complexities of language policies.

Answered: 1 week ago

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago