Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Assignment
Synopsis
In this assignment students work either individually or in pairs to implement an AI Player class for the game Connect 4. Students must write a class that recursively chooses the optimal move in the game Connect 4 given a board and the number of moves to look ahead. In addition to having students write a recursive algorithm, this assignment also requires students to design a class. It is particularly useful for students who need additional practice with recursion and classes.
Recommendations
Incorporate Pair Programming techniques to facilitate student reflection and analysis during program development.
Engagement Highlights
Uses a well-known game as a way to Employ Meaningful and Relevant Content.
Engagement Practices Employed
Materials and Links
Computer Science Details
Programming Language
Python
Material Format and Licensing Information
Creative Commons License
CC BY-NC