Game Programming as a Non-Threatening Introduction to Functional Languages

In this paper, we explain a new analysis technique to guide CS students during the development of a videogame. This technique is so structured as to make students learn the basics of functional programming without even realizing it. We start by describing some of the difficulties associated with forcing a more abstract style of reasoning and a functional language to undergraduate students. Then, we describe our general abstract framework for developing videogames and we show how an abstract model for a videogame built with this technique can be translated into working code almost effortlessly. Finally, we discuss how this approach can be extended to handle issues like users’ interaction and more sophisticated state management.