Tuesday, January 22
Design a program to display the game Connect 4, using OpenGL, GLUT and C. The board should be a 6 by 7 grid of slots as shown below. The board can be any color you like, and playing pieces should be contrasting colors. A sample board with some pieces already played is shown below. If you don't know how Connect 4 is played, find out by clicking here. The next homework assignment will require a "playable" game board. Design decisions you make for this assignment can make the next assignment much easier.
Connect 4 Game
should draw the board and the initial pieces, and should respond
to callbacks to automatically redraw the window if the board
display is covered and then uncovered. The program should
not quit until either the 'q' or 'esc' key is pressed on the
The program glsquare.c is a basic
OpenGL program using the GLUT interface library. It draws a
red square on a white background. You are welcome to study this
code before beginning the assignment.
your program using the standard submit procedure. You should include your
program source code and a Makefile.