Skip to content

Khamull/StratregyImplementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages