Answered step by step
Verified Expert Solution
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 : 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 x square board:
Starter Board
A B C D E
O O O O X
O O O O O
O O X O O
O O O O O
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 musketeers are not on the
same row or column. The guard wins if the musketeers are on the same row or column.
Example: Guards turn
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started