Both sides previous revisionPrevious revisionNext revision | Previous revision |
public:t-622-arti-12-1:prog1 [2012/02/12 11:35] – [Hints] stephan | public:t-622-arti-12-1:prog1 [2024/04/29 13:33] (current) – external edit 127.0.0.1 |
---|
===== Material ===== | ===== Material ===== |
* {{:public:t-622-arti-12-1:vacuumcleaner_utility_agent.zip|java project for the agent development}} | * {{:public:t-622-arti-12-1:vacuumcleaner_utility_agent.zip|java project for the agent development}} |
* some bigger environments will follow soon | * {{:public:t-622-arti-12-1:bigger_worlds.zip|some bigger test environments}} (updated 14.02.2012, see the worlds.txt file to see how big the state spaces are) |
| |
The files in the archive are similar to those in the first lab. | The files in the archive are similar to those in the first lab. |
- Setup the simulator as shown in this picture: | - Setup the simulator as shown in this picture: |
{{:public:t-622-arti-12-1:gamecontroller-settings.png?nolink&|}} | {{:public:t-622-arti-12-1:gamecontroller-settings.png?nolink&|}} |
- If there is a second role called "R in the game, leave it as "Random". | - If there is a second role called "Random" in the game, leave it as "Random". |
- Run the "Main" class in the project. If you added your own agent class, make sure that it is used in the main method of Main.java. You can also execute the "ant run" on the command line, if you have [[http://ant.apache.org/|Ant]] installed. The output of the agent should say "NanoHTTPD is listening on port 4001", which indicates that your agent is ready and waiting for messages to arrive on the specified port. | - Run the "Main" class in the project. If you added your own agent class, make sure that it is used in the main method of Main.java. You can also execute the "ant run" on the command line, if you have [[http://ant.apache.org/|Ant]] installed. The output of the agent should say "NanoHTTPD is listening on port 4001", which indicates that your agent is ready and waiting for messages to arrive on the specified port. |
- Now push the "Start" button in the simulator and your agent should get some messages and reply with the actions it wants to execute. At the end, the output of the simulator tells you how many points your agent got: "Game over! results: 0". Those points correspond more or less with negated costs. That is, more points means the solution had lower costs. | - Now push the "Start" button in the simulator and your agent should get some messages and reply with the actions it wants to execute. At the end, the output of the simulator tells you how many points your agent got: "Game over! results: 0". Those points correspond more or less with negated costs. That is, more points means the solution had lower costs. |
To create the zip file you just edit the "student" property in the build.xml and call the "zip" target using ant (execute "ant zip" in the directory containing the build.xml). | To create the zip file you just edit the "student" property in the build.xml and call the "zip" target using ant (execute "ant zip" in the directory containing the build.xml). |
| |
The deadline is Sunday, 12.02.2012. | The deadline is Tuesday, 14.02.2012. You can still hand in after the deadline, but your grade will be lowered by 0.5 for each day your submission is late. |