In this project, students are asked to create the game Snake, which consists of a rectangular board of 20 rows and 30 columns. The snake and player both live on the board. The snake is represented by the letter "X" on the board, and the player is represented by the letter "i". The object of the game is to avoid being bitten or eaten by the snake. Students use stepwise refinement to build versions of the game.
Use pair programming and/ or student to student interaction to have groups of students work together on this game. By working in teams and discussing different strategies, students are likely to come with more creative and innovative approaches.
It may be helpful to view this chapter on matrices/ arrays while doing this project. (http://troll.cs.ua.edu/ACP-PY/index_19.html)
Using the Python programming language, students are asked to use functions and stepwise refinement in order to build the game Snake. By using a fun and interactive game, this project demonstrates Meaningful and Relevant Content.