artificial intelligence:write a program to play Connect Four
1
CSCI 5582 – Artificial Intelligence
Dr. Williams
Program 1 – Connect Four
Due 9/19/2016
Connect Four Graphical Driver
I have written a graphical driver program that animates the game and provides a menu item to set the
preferences – grid size and player programs (executable and arguments). The program is on Canvas and
named connect-four-graphical-driver.rkt. The following is a screen shot at the end of a
game where Player 2 wins.
The File menu contains an Exit menu item that exits the program. The Edit menu contains a
Preferences… menu item that shows a dialog box that allows setting various parameters. This dialog is
shown below.
2
Like the existing Connect Four driver program, the graphical driver program is a Racket program that can
be run from the DrRacket IDE. If preferred, the graphical driver program can be compiled and run from
an executable.
You can use either the existing driver program or the graphical driver program. Your program will work
the same with either.