
13.4. Intelligent Players 201
1. Open the file RandomPlayer.java with a text editor (not in the IDE
yet).
2. Copy the content into a new file (does not need to be saved).
3. Replace all RandomPlayer Strings with AIRunner.
4. Open the IDE and create a new class roa.ldn.client.players
.AIRunner
5. Copy the modified file content into the new class and save.
6. Save the file ../resources/london.roa/client/RandomPlayer.props
as AIRunner.props and add it to the command line to launch AIRunner.
7. Modify the main method to playerFactory(1,0) as an example.
8. Run a game with the new player (and other random players) for
testing.
9. Replace the player factory with