Skip to content

Displays strong use of Polymorphism or Strategy Pattern

Notifications You must be signed in to change notification settings

itaccounts-sw/DeckOfCards

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

DeckOfCards

Incorporates use of Polymorphism or Strategy Pattern

The goal with the DeckOfCards application was to provide a design that can deal, shuffle, draw and reset a deck different decks of cards. Such as a standard deck and an Uno deck. The standard deck deals five cards per deal, whereas the Uno deck deals 11 cards per deal.

To implement this behavior, the use of Polymorphism and Inheritance was applied... or some may call it the Strategy Pattern. This is done by using interfaces for method argument types, such as Shuffle(ICardGame game). Such a design loosely couples the cards from menu operations.

About

Displays strong use of Polymorphism or Strategy Pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%