Principles
of Intelligent Systems (2101INT)
Taking
the VacuumDemo.zip file, extract the code and place it in a directory of your choice.
Open VacuumGUIDemo.java in JCreator and recompile and run the program.
Your
task is to change the demo program so that
1.
the
position of the vacuum and dirt is randomly allocated when the program starts
2.
additional
dirt is randomly dropped in the environment after the vacuum has finished
cleaning the initial dirt
3.
the
vacuum continues searching for dirt after it has done its first clean
4.
now
change the performance measure of the agent so that moving between squares
costs 5 instead of one and change the behaviour of the agent so that its
performance improves according to the new measure.
To
do these tasks you will need to open the other .java files in the zip file and
see what they are doing.