Setting up J++ for the Agent World 1) Copy the AgentWorld/Packages directory from the course computers to your PC. Let's say you put this in C:\CS540\AgentWorld\ (of course you can put it wherever you wish, but then you'll need to rename what follows). Also put RunAgentWorld.java and SamplePlayer.java in, say, C:\CS540\HW1\Java 2) Start up J++. Under File in the top, leftmost menu, select New. (J++'s menus, buttons, etcs are reconfigurable, so yours may be located differently than mine) Select the Projects tab. Press "Java Project" on the left. Under Project Name on the right, type HW1 and under Location type something like C:\CS540\ The "Create New Workspace" should be selected, but if not, do so. Press OK. 3) In the topmost menu bar, select Projects, then Add To Project, then Files. Maneuver to C:\CS540\HW1\Java and select RunAgentWorld.java Again pull down the Projects menu and select Settings. Select the General tab. In "Class Path Directories" add C:\CS540\ (note do NOT include AgentWorld here - J++ looks for the AgentWorld directory starting from the location you specifiy in this box). Still under the General tab, enter "classes" (without quotes) in the box labeled "Output directory" 4) Still in the Settings window, select the Debug tab. Under the Category "General," enter RunAgentWorld (do not include a .java or .class extension) in the box labelled "Class for Debugging/Executing". Click the "Stand-alone interpreter" button, as we're making a Java application and not an applet. (You might also wish to go to the Java tab in the Settings window and pick Level 4 - that's the setting I use - but this is optional.) Press OK in the Settings window. 5) Finally do an "Execute" (the red exclamation mark under the Build menu (also bound to control F5). This will also cause your RunAgentWorld.java file to be compiled. An MS-DOS window should come up, followed by the AgentWorld. 6) You'll next have to add your version of the SamplePlayer.java file to this project. First rename to SmithPlayer.java (if your login is smith), then add this file to your project. Next edit the class definition to SmithPlayer, then repeat step 5.