<Return to V-World Home Page>
Artificial Intelligence Center
The University of Georgia
Athens, GA 30605
Copyright 2005 Donald Nute
Artificial Intelligence and Rational Agents
Exercise 1: Catch the Bird
Exercise 2: Watch Bumble Go
Exercise 3: Bumble 1.1
Exercise 4: Bumble 1.2
Exercise 5: Search Methods
Exercise 6: Bumble 1.3 - Mapper
Exercise 7: Bumble 1.4 - Explorer
Exercise 8: Bumble 1.5 - Hunter
A popular text in artificial intelligence (Russell and Norvig 2003) characterizes AI as the attempt to design rational agents. V-World is a virtual environment where agents can be tested. The V-World simulator is written in LPA WIN-PROLOG as are V-World "worlds" and agents. This workbook sets out a set of exercises and projects using V-World that are aimed at helping the student learn the basic concepts and techniques used in AI research. It is possible to build V-World worlds and agents and test them using only the stand-alone compiled version of V-World, but it will be very difficult to debug code written using this environment. So LPA WIN-PROLOG 4.300 is available on desktop computers in the AI Lab. If you need an account for the AI Lab, please let me know.
The workbook is coordinated for use with (Russell and Norvig 2003) as the basic resource for information about AI concepts and techniques. The first part of the workbook is organized into a series of exercises, each aimed at illustrating some particular concept or technique. The effect of these exercises is intended to be cumulative so that the student who proceeds through them in order develops reusable pieces of code that can be used in later exercises and projects. The second part of the workbook consists of a set of more ambitious projects each of which builds on lessons learned in the exercises and each of which requires significant programming effort. These projects are grouped according to their primary objective: planning, learning, etc. Different projects in the same group involve environments or goals that are different enough to insure that individual students or student teams working on different projects in the same group can learn from each other through sharing ideas but must develop some of their own distinctive strategies to produce a successful agent.
Installing V-World <Return to Top>
Download vworld_install.exe from http://www.arches.uga.edu/~dnute/vworld and place it in the folder where you want to install V-World. I suggest that you put it in a folder called VWORLD on your desktop where you can find it quickly from within the WIN-PROLOG development environment. Unzip the file in this folder. Run vworld_install.exe to install all the V-World files. Right click vworld.exe and click Create Shortcut on the pop-up menu. Then right click on Shortcut to vworld.exe and click Properties in the pop-up menu. A dialog box will appear. Click in the Target field of the dialog box, and then hit the End key to go to the end of this line. Type in a blank space followed by
/P4000 /T1000 /S4000 /H4000 /B1000
Next, click the OK button in the dialog box. Always start vworld.exe by double-clicking on the Shortcut to vworld.exe icon. The shortcut will use the parameters you have typed in to tell vworld.exe how much memory to reserve for program, text, stack, heap, and backtrack stack. You may need to set one or more of these parameters higher to run very complex worlds or agents.
You will also need to set these parameters for the LPA WIN-PROLOG development system if you use it to develop your agents.
You can drag the Shortcut to vworld.exe icon to your desktop or to the START menu on your task bar to make it easier to start V-World.
You may start V-World by double-clicking the V-World shortcut icon. But when you are developing and debugging a V-World agent, you will probably want to run V-World from within the LPA WIN-PROLOG developers' environment. Start WIN-PROLOG and select Open from the File menu. Browse to your V-World folder, select vworld.pl, and click the Open button. The V-World source code will open in an edit window in the WIN-PROLOG developers' environment. Click Compile on the WIN-PROLOG Run menu. Then change to the WIN-PROLOG Console window, type vmain. at the ?- prompt, and press the Enter key. The V-World interface will appear and you can interact with it as you usually would.