AMazeBot 2012 Download

This is a very quick guide to getting starting with AMazeBot.

Step 1: Java JDK & IDE Setup

Developing an AMazeBot requires JDK 6 and either NetBeans or Eclipse. If you're not interested in programming and just want to play with the Maze Editor, you can skip this step and proceed to step 2 below.

If you are new to Java programming, we recommend using NetBeans. The easiest way to get both the JDK and NetBeans is to download the bundle from the Java website here . Alternatively you can download Eclipse here if your prefer a more advanced IDE. We recommend using Eclipse if you want to program your bot in Scala instead of Java (you'll also need the Scala plugin from here).

Step 2: Get the AMazeBot DevKit

The development kit is provided as a ZIP file containing a project folder called "AMazeBot2012Sample". This folder can be opened directly in either NetBeans or Eclipse. Extract that folder to a location of your choice. You can see the list of changes here.

Download the AMazeBot 2012 DevKit here
(version 1.5 updated 2010-12-22, 158 KB)

Step 3: Modify the Source Code

The following instructions assume you are using NetBeans. If you are using Eclipse, you probably already know how to get started. If you do run into difficulty, you can ask on the forum.

Start NetBeans, click the "Open Project" icon on the toolbar, and select the folder you extracted in step 2. The project loads but no file is opened. In the Projects pane (press Ctrl-1 if it's not showing) find the bots.SampleBot package under "Source Packages", and open the Brain.java file. This is the core of a bot program (you are creating the brain that will control the bot).

As the comments in the code indicate, you'll need to change the bot's package in order to rename it to something other than "SampleBot". The easiest way to do this is to use the refactor command in NetBeans. Find the line that says "package bots.SampleBot" and put the cursor somewhere in the bot name. Then press Ctrl-R to rename the package. Remember to keep the "bots." part, and only change the "SampleBot" part. Press the Refactor button and the file gets moved to the appropriate place. You can also change getName()method.

Step 4: Run the Bot

When you run the program, you should get a screen like the one below. (If the bot run was "SampleBot" instead of your renamed bot, select your new bot from the list of bots. The system will remember the name for the next time you run the program.)

AMazeBot 2010 Bot Tester

Step 5: Build a Better Brain

The sample code has no actual maze-solving logic and probably won't solve many mazes. Now it's up to you to add more intelligence to your bot. Not sure how to do that? Come to the workshops and learn some elementary techniques, or try the tutorials.