Back to Search Start Over

Learning Object-Oriented Programming by Creating Games.

Authors :
VÉGH, Ladislav
STOFFOVÁ, Veronika
Source :
eLearning & Software for Education; 2019, Vol. 1, p20-29, 10p
Publication Year :
2019

Abstract

Computer programming is one of the most important subjects for undergraduate computer science students, it is usually taught at universities during the first few semesters. There are many approaches to teach and learn computer programming. Some may prefer teaching/learning procedural programming first, others object-oriented programming first. In any case, to acquire good programming skills, students need to learn various data types, data structures, control structures, and the syntax of the chosen programming language. Furthermore, and most importantly, they need to acquire good logical and algorithmic thinking. This might cause big problems for new computer science students because acquiring such a thinking takes many years of practice. Students need to solve a huge number of various programming problems from easier to harder ones. But how can teachers motivate students to solve so many and so complex programming tasks? Because most of the undergraduate computer science students like playing computer games, we think creating their own games might be a big motivating factor. In this paper, first, we briefly summarize some possible approaches to teach object-oriented programming (OOP). Next, we describe our method of teaching computer programing at J. Selye University, focusing especially on teaching OOP by developing simple games. We think, to learn OOP, students need to have some basic knowledge of structural programming first. That’s why they learn standard C programming language during the first two semesters, and they start learning OOP using the C# programming language only from the third semester. The main part of this article deals with the teaching and learning OOP by creating computer games. By developing a simple tictac-toe game, students learn how to instantiate objects from the “Button” class, and how to use these objects. Later, by creating other puzzle games (fifteen puzzle, matching game, minesweeper), students learn how to create own classes by deriving them from the “Button” class, how to add fields and methods into them. Finally, students will be able to create more complicated games using OOP techniques. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
2066026X
Volume :
1
Database :
Complementary Index
Journal :
eLearning & Software for Education
Publication Type :
Conference
Accession number :
135939607
Full Text :
https://doi.org/10.12753/2066-026X-19-002