In this lab, students using process oriented guided inquiry learning (POGIL) dissect a program that solves the Towers of Hanoi puzzle. Three increasingly sophisticated implementations are provided: one that hard-codes the solution, one where methods call other methods to solve simpler problem instances, and one using recursion. Learning objectives include understanding recursion and critical thinking. This lab allows students to read an existing program rather than creating one from scratch.
POGIL Activities Teams of 3-4 students work well in this lab. Students should be assigned roles such as manager, recorder, presenter, and analyst. Prior exposure to static methods is recommended.
Additional recommendations include:
- To quickly examine this activity, see the PDF posted below. This is the instruction sheet that the students will work through.
- To look more deeply or modify the assignment for your own use, get the latest version of the PDF, Java code, and any other files here: https://github.com/PeterDrake/ljing2-skeletons/tree/master/Towers%20of%20Hanoi
- To quickly install and run this activity, as well as all of the other Learn Java in N Games activities, follow the instructions here: http://ljing.org/.
- See pogil.org and cspogil.org for more information on running POGIL activities.
This POGIL lab is a well-structured collaborative learning experience and has significant benefits for engagement and inclusion. The game-based nature of this lab is appealing and welcoming to many students. To increase engagement, consider providing additional information about the history of the puzzle, Towers of Hanoi.