Lab 9
Create an AI client for TicTacToe.
- Create a directory for this lab, say "lab9"
-
Download to the new directory:
NetGGFramework.zip (V2.0)
V2.0 fixes background loading
Plugins.zip
Now a separate download.
- Unzip the zipfile into the new directory.
Activity
-
Modify the TTT client so that it acts as a computer opponent.
The computer should make a valid, but randomly selected, move.
Resources
NetworkConnection.java (V1.0)
To start a server:
bin/server.sh
To compile and run your plugin,
cd plugins
javac ..:. *.java
cd ..
bin/client.sh
To connect to your local server, select
the default host "localhost".
Then open another terminal window, and start a second client
running with a different username.
Submission
Demonstrate your completed program to the instructor.
Create a zip file containing the plugins folder and the TTT folder.
Submit the zip file via handin
to the "Lab9" folder.