Assignments DesignPatterns Week4
Assignments DesignPatterns Week4
Week 4 assignments
When creating the program code, you must apply the following basic principles:
• create a separate project for each assignment;
• use name ‘assignment1’, ‘assignment2’, etcetera for the projects;
• create one solution for each week containing the projects for that week;
• make sure the output of your programs are the same as the given screenshots;
Each character has a default weapon, but this can change during the game (to another weapon).
Implement the classes/interfaces shown, and use the following main program to test it:
void Start()
{
List<Character> characters = new List<Character>();
characters.Add(new Queen());
characters.Add(new Troll());
characters.Add(new King());
characters.Add(new Knight());
// create a robot
// ...