Search:
IntelliJ IDEA 10 MarioAI Project

General

This is a step-by-step guide to get you up and running using IDEA IntelliJ 10. You can of course use whichever IDE you like most. However, we're only providing this guide for Intellij 10.

Setup

  1. Download IntelliJ IDEA 10 from here (you want the communicty edition).
  2. Download the prepared ZIP-File (the framework) from here and copy it into a folder where you'll find it again ;-)
  3. Extract the contents of the file.
  4. Open IntelliJ and open the Project (File -> Open Project ... -> select the folder that contains the PAI_Mario.iml file).
  5. Start any of the pre-set run configurations :-)

If you run into problems and IntelliJ complains about not being able to find some libraries, right-click on the Mario-Module in the project view on the left, select "Open Module Settings", and make sure that the following settings are correct:

  • Under "Modules - Mario - Dependencies" you should have a valid Module SDK selected. If not, select your JDK installation from the drop down menu. If your JDK is  not yet listed, click on the "New" button (next to the Module SDK combo box), select JSDK and point it to you JDK installation folder (e.g. c:\Program Files\Java\jdkk1.6.0_21).
  • Same thing for "Modules - PAI_Mario - Dependencies" and "Modules - my_agent - Dependencies".
  • If the dependency list under "Modules - my_agent - Dependencies" shows a red "mario" with a question mark icon, do the following:
    • Click on "Add..."
    • Click on "3. Module Dependency"
    • Select the "Mario" entry and hit "OK"
    • Select the faulty (red) mario entry from the list and remove it.

Then, try again. Good luck!

 

Submitting Your Solution

  1. Click on the menu item "Build -> Build 'myagent.jar' artifact"
    (This will create a file named myagent.jar in the root folder of your project i.e. the folder where you unzipped the file from the setup into.)
  2. Make sure that the created jar file contains your source and the compiled class files.
  3. Rename the file into: lastname_firstname_pai2011_a#.jar (where # is a placeholder for the number of the assignment. Example: fischer_lorenz_pai2011_a2.jar)
  4. Email it to Lorenz Fischer or Cosmin Basca
  5. Thanks!