/StratregyImplementation

A Simple Implementation of the Desing Pattern Strategy, from GOF book.

Primary LanguageC#MIT LicenseMIT

Simples Strategy Desing Pattern Implementation base on the GOF book Design Patterns

This repository contains examples of design patterns implemented in C#. Each example is contained in a separate C# file.

It is formed by two C# .net core 6.0 console applications.

Square Fighter Example and the Strategy Pattern project. To Run Both just clone the code, open in Visual Studio, select the project to run and hit [F5]

#The Square Fighter Program.cs (SquareFighter)

Showcases the Strategy Pattern in the context of a simple console-based game called "Square Fighter." It includes classes for character movement and drawing strategies, as well as a Character class that can dynamically change its strategies.

Follow the on-screen instructions to control the character using the keys 'W', 'A', 'S', and 'D'. Press 'Q' to quit the game.

#The Strategy Pattern Example: Follow the instructions provided in the console to select and execute different scheduling strategies.