Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article

Computer games as motivation for design patterns

Published: 07 March 2007 Publication History

Abstract

We present a computer game case study that can be used to motivate the need for design patterns. Design patterns are often misunderstood, but good examples can motivate students to work at understanding patterns. Computer games are used in many books and online resources to teach programming concepts, but these examples are usually simplified or non-object-oriented. We present a simple game that exhibits functionality found in commercial games (animation, collision detection, etc.) and show how it can be used as a case study for design patterns. Specifically, we illustrate how the state, facade, observer, strategy, and visitor patterns can replace procedural approaches for implenting the logic and animation of game written in Java.

References

[1]
M. Barg, A. Fekete, T. Greening, O. Hollands, J. Kay, J. H. Kingston, and K. Crawford. Probl-based learning for foundations computer science courses. Comp. Sci. Educ., 10(2):1--20, 2000.
[2]
S. Bjork and J. Holopainen. Patterns in Game Design. Charles River Media, 2004.
[3]
K. Claypool and M. Claypool. Teaching software engineering through game design. In ITiCSE '05: Proceedings of the 10th annual SIGCSE conference on Innovation and technology in computer science education, pages 123--127, New York, NY, USA, 2005. ACM Press.
[4]
A. Davison. Killer Game Programming in Java. O'Reilly Media Inc., 2005.
[5]
A. Decker. A tale of two paradigms. Journal of Computing Sciences in Colleges, 19(2):238--246, 2003.
[6]
P. Dewan. Teaching inter-object design patterns to freshmen. In SIGCSE '05: Proceedings of the 36th SIGCSE technical symposium on Computer science education, pages 482--486, New York, NY, USA, 2005. ACM Press.
[7]
E. Gamma, R. Helm, R. Johnson, and J. Vlissides. Design patterns: elents of reusable object-oriented software. Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA, 1995.
[8]
P. Gestwicki and B. Jayaraman. Methodology and architecture of jive. In SoftVis '05: Proceedings of the 2005 ACM symposium on Software visualization, pages 95--104, New York, NY, USA, 2005. ACM Press.
[9]
S. Hansen. The game of set: an ideal example for introducing polymorphism and design patterns. In SIGCSE '04: Proceedings of the 35th SIGCSE technical symposium on Computer science education, pages 110--114, New York, NY, USA, 2004. ACM Press.
[10]
A. Holub. Holub on Patterns: Learning Design Patterns by Looking at Code. APress, 2004.
[11]
D. Z. Nguyen and S. B. Wong. Design patterns for games. In SIGCSE '02: Proceedings of the 33rd SIGCSE technical symposium on Computer science education, pages 126--130, New York, NY, USA, 2002. ACM Press.
[12]
M. R. Wick. Teaching design patterns in cs1: a closed laboratory sequence based on the game of life. In SIGCSE '05: Proceedings of the 36th SIGCSE technical symposium on Computer science education, pages 487--491, New York, NY, USA, 2005. ACM Press.

Cited By

View all
  • (2023)Design Patterns for Mobile Games Based on Structural SimilarityApplied Sciences10.3390/app1302119813:2(1198)Online publication date: 16-Jan-2023
  • (2020)Evaluating an Interactive Tool for Teaching Design PatternsProceedings of the Twenty-Second Australasian Computing Education Conference10.1145/3373165.3373184(167-176)Online publication date: 3-Feb-2020
  • (2019)Learning Word Problem Solving Process in Primary School Students: An Attempt to Combine Serious Game and Polya’s Problem Solving ModelData Analytics Approaches in Educational Games and Gamification Systems10.1007/978-981-32-9335-9_8(139-163)Online publication date: 11-Sep-2019
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGCSE Bulletin
ACM SIGCSE Bulletin  Volume 39, Issue 1
March 2007
581 pages
ISSN:0097-8418
DOI:10.1145/1227504
Issue’s Table of Contents
  • cover image ACM Conferences
    SIGCSE '07: Proceedings of the 38th SIGCSE technical symposium on Computer science education
    March 2007
    634 pages
    ISBN:1595933611
    DOI:10.1145/1227310
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 07 March 2007
Published in SIGCSE Volume 39, Issue 1

Check for updates

Author Tags

  1. design patterns
  2. games
  3. java
  4. pedagogy

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)14
  • Downloads (Last 6 weeks)1
Reflects downloads up to 09 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Design Patterns for Mobile Games Based on Structural SimilarityApplied Sciences10.3390/app1302119813:2(1198)Online publication date: 16-Jan-2023
  • (2020)Evaluating an Interactive Tool for Teaching Design PatternsProceedings of the Twenty-Second Australasian Computing Education Conference10.1145/3373165.3373184(167-176)Online publication date: 3-Feb-2020
  • (2019)Learning Word Problem Solving Process in Primary School Students: An Attempt to Combine Serious Game and Polya’s Problem Solving ModelData Analytics Approaches in Educational Games and Gamification Systems10.1007/978-981-32-9335-9_8(139-163)Online publication date: 11-Sep-2019
  • (2016)Design patterns applied for game design patterns2016 17th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD)10.1109/SNPD.2016.7515924(351-356)Online publication date: May-2016
  • (2015)Software Architectures and the Creative Processes in Game DevelopmentEntertainment Computing - ICEC 201510.1007/978-3-319-24589-8_21(272-285)Online publication date: 1-Dec-2015
  • (2014)Design patterns applied for networked first person shooting game programming15th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD)10.1109/SNPD.2014.6888715(1-6)Online publication date: Jun-2014
  • (2013)Mobile game development: improving student engagement and motivation in introductory computing coursesComputer Science Education10.1080/08993408.2013.77723623:2(138-157)Online publication date: Jun-2013
  • (2011)Extensive Evaluation of Using a Game Project in a Software Architecture CourseACM Transactions on Computing Education10.1145/1921607.192161211:1(1-28)Online publication date: 1-Feb-2011
  • (2009)A practice of collaborative project-based learning for mutual edification between programming skill and artistic craftsmanshipProceedings of the 39th IEEE international conference on Frontiers in education conference10.5555/1733663.1733933(1152-1156)Online publication date: 18-Oct-2009
  • (2009)Engaging students through mobile game developmentACM SIGCSE Bulletin10.1145/1539024.150888141:1(44-48)Online publication date: 4-Mar-2009
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media