public:t-622-arti-12-1:prog2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:t-622-arti-12-1:prog2 [2012/02/16 11:03] – [Material] stephan | public:t-622-arti-12-1:prog2 [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Programming Assignment 2 - Adversarial Search ====== | ====== Programming Assignment 2 - Adversarial Search ====== | ||
- | **Use the [[http:// | + | **Use the [[http:// |
===== Problem Description ===== | ===== Problem Description ===== | ||
Line 22: | Line 22: | ||
===== Material ===== | ===== Material ===== | ||
* {{: | * {{: | ||
+ | * {{: | ||
- | The files in the archive are similar to those in the first programming assignment. | + | The files in the first archive are similar to those in the first programming assignment. The archive contains code for implementing an agent in the src directory. The agent is actually a server process which listens on some port and waits for the real robot or a simulator to send a message. It will then reply with the next action the agent wants to execute. |
- | The first file contains code for implementing an agent in the src directory. The agent is actually a server process which listens on some port and waits for the real robot or a simulator to send a message. It will then reply with the next action the robot is supposed to execute. | + | The zip file also contains the description of the environment (connect4.gdl) and a simulator (gamecontroller-gui.jar). To test your agent: |
- | + | ||
- | The zip file also contains the description of some example | + | |
- Start the simulator (execute gamecontroller-gui.jar with either double-click or using the command "java -jar gamecontroller-gui.jar" | - Start the simulator (execute gamecontroller-gui.jar with either double-click or using the command "java -jar gamecontroller-gui.jar" | ||
- Setup the simulator as shown in this picture: | - Setup the simulator as shown in this picture: | ||
Line 33: | Line 32: | ||
- You can use your player as both the first and the second role of the game, just not at the same time. | - You can use your player as both the first and the second role of the game, just not at the same time. | ||
- Run the " | - Run the " | ||
- | - Now push the " | + | - Now push the " |
- If the output of the simulator contains any line starting with " | - If the output of the simulator contains any line starting with " | ||
Line 39: | Line 38: | ||
For implementing your agent: | For implementing your agent: | ||
* Add a new class that implements the " | * Add a new class that implements the " | ||
- | * You have to implement the methods " | + | * You have to implement the methods " |
* You can make sure to be on time by regularly checking whether there is time left during the search process and stopping the search just before you run out of time. | * You can make sure to be on time by regularly checking whether there is time left during the search process and stopping the search just before you run out of time. | ||
- | * | ||
===== Handing In ===== | ===== Handing In ===== | ||
Line 50: | Line 48: | ||
To create the zip file you just edit the " | To create the zip file you just edit the " | ||
- | The deadline is Tuesday, 28.02.2012. We will have a competition between your agents in the lab on Thursday, 01.03.2012. Extra points for the winner! | + | The deadline is Tuesday, 28.02.2012. We will have a competition between your agents in the lab on Thursday, 01.03.2012. Extra points for the winner! |
+ | |||
+ | As with the first programming assignment, you can still hand in after the deadline (by email), but your grade will be lowered by 0.5 for each day your submission is late. Also, you can't get the extra points for winning the competition. | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-622-arti-12-1/prog2.1329390234.txt.gz · Last modified: 2024/04/29 13:32 (external edit)