CS 112 - Introduction to Computer Science II
Homework #8


Due: Monday 11/13 at the beginning of class

NOTE: This work is to be done individually

Game/Puzzle GUI Design

Implement a GUI for a game of your choice with the following requirements:

Sample Project #1: Lights Out Extreme

Sample Project #2: Hex

In a graphical implementation of Hex, one might have a menu option for starting a new game, with a frame presenting game options, such as a checkbox allowing/disallowing the pie rule, and/or, selection of the board size.   An undo button allows players to undo any number of previous moves.  For simplicity, one could record a grid of board positions, draw a triangular grid representation, and display pieces as circles of two colors centered at such positions.  A mouse click would indicate a play at the closest of the grid positions.

Sample Project #3: Connect Four

In a graphical implementation of Connect Four, one might have a menu option for starting a new game, with a frame presenting game options, such as modifiable board dimensions.  An undo button allows players to undo any number of previous moves.  Variants are also possible (e.g. Fourscore, 5-in-a-row, etc.)

Choose a project you'll enjoy.  If you're unsure about the feasibility of a project, consult with me and we'll discuss it.  Although you may look at web applets online for ideas, you are not permitted to use online code.  This is to be your independent implementation from scratch.