An open API service indexing awesome lists of open source software.

https://github.com/julianamancera/labassign1_strategy-pattern

Software Engineering 2 - Strategy Pattern: Laboratory Assignment 1
https://github.com/julianamancera/labassign1_strategy-pattern

game-app software-engineering strategy-pattern

Last synced: 10 months ago
JSON representation

Software Engineering 2 - Strategy Pattern: Laboratory Assignment 1

Awesome Lists containing this project

README

          

# LabAssign1_Strategy-Pattern
## Problem scenario:

### Suppose we have three types of characters in a GameApp:

  **1. Knight:** Attacks with a sword; uses 3 strategies to defend (shield, dodge, magic barrier)

  **2. Wizard:** Casts spells; uses magic barrier to defend

  **3. Archer:** Shoots arrows; uses dodge to to defend

### Implement two types of Strategy:
**A. DefenseStrategy**

  1. Shield

  2. Dodge

  3. CreateMagic

**B. AttackStrategy**

  1. CastSpell

  2. ShootArrow

  3. SwingSword

## UML Class Diagram:

![Lab Assign 1 SE2 - Juliana R Mancera 3BSCS-1](https://github.com/user-attachments/assets/6fe43b2a-0c40-4db8-b83d-a914ee98f77a)