The game of set®: an ideal example for introducing polymorphism and design patterns

  • Authors:
  • Stuart Hansen

  • Affiliations:
  • University of Wisconsin, Parkside, Kenosha, WI

  • Venue:
  • Proceedings of the 35th SIGCSE technical symposium on Computer science education
  • Year:
  • 2004

Quantified Score

Hi-index 0.02

Visualization

Abstract

This paper presents an object--oriented design for a solitaire version of the game of Set® The design is responsibility driven and illustrates polymorphism and several fundamental design patterns, including Flyweight, Strategy and Factory. It introduces each of these to solve particular problems within the design. The direct application of these concepts and the interest our students show in the game make Set an ideal example for classroom discussions and assignments.