Software

Lab 2: Auto-Step Solution for BotEnvironment

Here’s a solution for the missing Auto-Step behavior in the environment for Lab2; thanks, Alan!


Author: Alan Phu Truong.

Solution:

Instead of using the following to start your environment in Linux/Mac:
java -classpath .:WumpusEnvironment.jar BotEnvironment.WumpusEnvironment

Use:
java -Xint -classpath .:WumpusEnvironment.jar BotEnvironment.WumpusEnvironment

On Windows, replace the colon with a semicolon:
java -Xint -classpath .;WumpusEnvironment.jar BotEnvironment.WumpusEnvironment

AutoStep seems to work under more circumstances with this flag.

-Xint: Operate in interpreted-only mode. Compilation to native code is disabled, and all bytecodes are executed by the interpreter. The performance benefits offered by the Java HotSpot VMs' adaptive compiler will not be present in this mode.See http://download.oracle.com/javase/1.3/docs/tooldocs/linux/java.html



I’ve also added a pointer to additional material on Blackboard (under BotEnvironment JavaDocs, BotEnvironment Tutorial, and BotEnvironment FAQ) to the Lab 2 description.


If you want to be updated about postings to the Blackboard Discussion forum, click on the forum title, and then on the “Subscribe” button at the top. Subscriptions can be enabled or disabled for a specific forum, so not all of them will have the “Subscribe” button.
0 Comments