{"id":25943565,"url":"https://github.com/julianamancera/labassign1_strategy-pattern","last_synced_at":"2026-06-09T05:05:10.578Z","repository":{"id":276932577,"uuid":"930702722","full_name":"JulianaMancera/LabAssign1_Strategy-Pattern","owner":"JulianaMancera","description":"Software Engineering 2 - Strategy Pattern: Laboratory Assignment 1","archived":false,"fork":false,"pushed_at":"2025-02-11T08:30:00.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T08:39:22.005Z","etag":null,"topics":["game-app","software-engineering","strategy-pattern"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JulianaMancera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T04:15:33.000Z","updated_at":"2025-02-11T08:30:03.000Z","dependencies_parsed_at":"2025-02-11T08:49:55.823Z","dependency_job_id":null,"html_url":"https://github.com/JulianaMancera/LabAssign1_Strategy-Pattern","commit_stats":null,"previous_names":["julianamancera/labassign1_strategy-pattern"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign1_Strategy-Pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign1_Strategy-Pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign1_Strategy-Pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign1_Strategy-Pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulianaMancera","download_url":"https://codeload.github.com/JulianaMancera/LabAssign1_Strategy-Pattern/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801255,"owners_count":20022396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game-app","software-engineering","strategy-pattern"],"created_at":"2025-03-04T07:17:38.878Z","updated_at":"2026-06-09T05:05:05.544Z","avatar_url":"https://github.com/JulianaMancera.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LabAssign1_Strategy-Pattern\n## Problem scenario:\n\n### Suppose we have three types of characters in a GameApp:\n\n\u0026emsp; **1. Knight:** Attacks with a sword; uses 3 strategies to defend (shield, dodge, magic barrier) \u003cbr\u003e\n\u0026emsp; **2. Wizard:** Casts spells; uses magic barrier to defend \u003cbr\u003e\n\u0026emsp; **3. Archer:** Shoots arrows; uses dodge to to defend \u003cbr\u003e\n\n### Implement two types of Strategy:\n**A.  DefenseStrategy** \u003cbr\u003e\n\u0026emsp;\u0026emsp;1. Shield \u003cbr\u003e\n\u0026emsp;\u0026emsp;2. Dodge \u003cbr\u003e\n\u0026emsp;\u0026emsp;3. CreateMagic \u003cbr\u003e\n\n**B.  AttackStrategy** \u003cbr\u003e\n\u0026emsp;\u0026emsp;1.  CastSpell \u003cbr\u003e\n\u0026emsp;\u0026emsp;2.  ShootArrow \u003cbr\u003e\n\u0026emsp;\u0026emsp;3.  SwingSword \u003cbr\u003e\n\n## UML Class Diagram: \n\n![Lab Assign 1 SE2 - Juliana R  Mancera 3BSCS-1](https://github.com/user-attachments/assets/6fe43b2a-0c40-4db8-b83d-a914ee98f77a)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianamancera%2Flabassign1_strategy-pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulianamancera%2Flabassign1_strategy-pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianamancera%2Flabassign1_strategy-pattern/lists"}