CONNECT
FOUR LESSON DEMO TEACHER’S DEMO 1) Get the software
files and bring them into Eclipse. 2) Talk about
Connect Four. Go to an online game of
Connect 4 and play a quick game. 3) Show how to
run a single game. Open the Tester
class and try the three different options to run a single game (Human vs
Human, AI vs AI, Human vs AI). Make a
note that and AIAgent that is null will be a human
player. 4) Show how to
change the AIAgents involved in a game. Introduce the AIAgents
that are provided with the software. 5) Spend a bit
of time testing the different AIAgents. Perhaps allow time for a Human vs Human match
between 2 players. 6) Show how to
run a series of games. Again, in the
Tester class, uncomment the code that runs a series. Show how to change the AIAgents
involved in the series. 7) Show how to
run a tournament. This is done again
in the Tester class. 8) Show how to
get information from the Game object.
Check out CampeauAI01 and CampeauAI02 to get ideas. 9) You are
ready to start. You can copy the code
from one of the existing AIAgents into your own
class and start altering it. |
|