https://github.com/felipeaz/strategy-pattern
Strategy pattern implementation in Golang
https://github.com/felipeaz/strategy-pattern
design-patterns golang strategy-pattern
Last synced: 3 months ago
JSON representation
Strategy pattern implementation in Golang
- Host: GitHub
- URL: https://github.com/felipeaz/strategy-pattern
- Owner: felipeaz
- Created: 2022-07-13T14:10:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T15:45:21.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T05:21:51.126Z (4 months ago)
- Topics: design-patterns, golang, strategy-pattern
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# strategy-pattern
Strategy pattern implementation in Golang## Strategy Design Pattern
Strategy is a behavioral pattern that isolates everything that change
into a separated class, making them interchangeable.## Project
This project simulates an RPG scenario where each character has a class and a weaponEach class has its own power and Each weapon have their own attack. Those particularities
have been isolated into separated class and only the methods used are known by the character.