Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian".
upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian".
upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos".
upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos".
upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos".
upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum".
upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum".
upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum".
upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor".
upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor".
upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor".
upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor".
upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor".
upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather".
upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather".
upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather".
upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather".
upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather".
upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo".
upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo".
upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo".
upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo".
upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners".
upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners".
upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners".
upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners".
upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners".
upgrade now! [49.3] (what's this?)
Hotfix release available fixing security token and media manager: 2017-02-19b "Frusterick Manners".
upgrade now! [49.2] (what's this?)
Hotfix release available fixing install and media manager issues: 2017-02-19a "Frusterick Manners".
upgrade now! [49.1] (what's this?)
New release available: 2017-02-19 "Frusterick Manners".
upgrade now! [49] (what's this?)
Hotfix release available: 2016-06-26e "Elenor of Tsort".
upgrade now! [48.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2016-06-26d "Elenor of Tsort".
upgrade now! [48.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2016-06-26c "Elenor of Tsort".
upgrade now! [48.3] (what's this?)
Hotfix release available fixing security token: 2016-06-26b "Elenor of Tsort".
upgrade now! [48.2] (what's this?)
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:ice_pambush3 [2012/06/06 01:26] kimkj |
wiki:ice_pambush3 [2019/08/27 14:45] (current) |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| * Tutorial 1 | * Tutorial 1 | ||
| * Open algorithm/Agent.java | * Open algorithm/Agent.java | ||
| - | * Comment if(gp.study==null) ~ direction=i+1;break;}} | + | * Comment out "if(gp.study==null) ~ direction=i+1;break;}}" (the rules of ICE Pambush 3) in the decide() function. |
| + | * Add the below code after "length=gp.distBorder;" | ||
| if(Exist(gp.num_pp)) direction = as.run(gp.num_pp); // move to the closest power pill | if(Exist(gp.num_pp)) direction = as.run(gp.num_pp); // move to the closest power pill | ||
| + | | ||
| + | {{youtube>q9j0JCD1C7c?small}} | ||
| * Tutorial 2 | * Tutorial 2 | ||
| + | * Comment out the new code in the Tutorial 1 | ||
| + | * Add the below code after "length=gp.distBorder;" | ||
| + | |||
| + | if (Exist(gp.num_pill)) direction = as.run(gp.num_pill); // move to the closest pill | ||
| + | | ||
| + | {{youtube>TJI5m-ZPMVI?small}} | ||
| + | |||
| + | * Tutorial 3 | ||
| + | * Comment out the new code in the Tutorial 2 | ||
| + | * Add the below code after "length=gp.distBorder;" | ||
| + | |||
| + | if (Exist(gp.num_pp)) direction = as.run(gp.num_pp); // move to the closest power pill | ||
| + | else if (Exist(gp.num_pill)) direction = as.run(gp.num_pill); // move to the closest pill | ||
| + | | ||
| + | {{youtube>GGsiO6qMZHo?small}} | ||
| + | |||
| + | * Tutorial 4 | ||
| + | * Comment out the new code in the Tutorial 3 | ||
| + | * Add the below code after "length=gp.distBorder;" | ||
| + | |||
| + | if (Exist(gp.num_edible)) direction = as.run(gp.num_edible); // move to the edible ghost | ||
| + | else if (Exist(gp.num_pp)) direction = as.run(gp.num_pp); // move to the closest power pill | ||
| + | else if (Exist(gp.num_pill)) direction = as.run(gp.num_pill); // move to the closest pill | ||
| + | |||
| + | {{youtube>2sBkM98e1Ww?small}} | ||
| + | |||
| + | |||
| + | |||
| + | |||