Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by gabemart on Monday April 07, 2014 @03:38PM
(#7548838)
Can anyone give me a hint for level 12?
[ Parent
| on HN ]
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by XaspR8d on Monday April 07, 2014 @03:44PM
(#7548890)
You're defining a robot's properties, so you might want to define its properties. That'll open the door to higher-level navigation logic.
(Being obtuse is difficult...)
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by rooodini on Monday April 07, 2014 @05:55PM
(#7549841)
I made the robot follow a cosine curve. Cute but ridiculous solution.
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by pilom on Monday April 07, 2014 @06:04PM
(#7549904)
wow that level took me forever. Ended up using things along the lines of if( me.getX() < 15) {move down then right} elst if me.getX()>15 and < 30 {move up then right} etc.
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by bluesnowmonkey on Tuesday April 08, 2014 @10:24PM
(#7557354)
I encoded a route.
moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by cheepin on Tuesday April 08, 2014 @05:38AM
(#7552345)
I personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by frzen on Monday April 07, 2014 @10:48PM
(#7551170)
You could create your own robot control system based on pressure plates as well
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by lockes5hadow on Monday April 07, 2014 @07:59PM
(#7550522)
You could always implement a-star, a searching algorithm.
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by icemelt8 on Tuesday April 08, 2014 @09:48AM
(#7553341)
What if the triangular walls were straight?
Re:Show HN: Untrusted, a JavaScript adventure game you play ...
by subtenante on Wednesday April 09, 2014 @12:00PM
(#7560120)
map.getPlayer()['hasItem'] = function yes () { return true; };