Back to front pageView on Hacker News (opens in a new tab)Show HN: Untrusted, a JavaScript adventure game you play by modifying its source (opens in a new tab)alex.nisnevich.com555 pointsby alnis (on Hacker News)12 years agoComments (235) 72 threadsShow all commentsShowing thread 67 of 72[-]gabemart12 years ago9 replies#Can anyone give me a hint for level 12?XaspR8d12 years ago#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...)rooodini12 years ago#I made the robot follow a cosine curve. Cute but ridiculous solution.pilom12 years ago#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.lockes5hadow12 years ago#You could always implement a-star, a searching algorithm.frzen12 years ago#You could create your own robot control system based on pressure plates as wellcheepin12 years ago#I personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.icemelt812 years ago#What if the triangular walls were straight?bluesnowmonkey12 years ago#I encoded a route. moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]subtenante12 years ago#map.getPlayer()['hasItem'] = function yes () { return true; };
Show HN: Untrusted, a JavaScript adventure game you play by modifying its source (opens in a new tab)alex.nisnevich.com555 pointsby alnis (on Hacker News)12 years ago
XaspR8d12 years ago#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...)
pilom12 years ago#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.
cheepin12 years ago#I personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.
bluesnowmonkey12 years ago#I encoded a route. moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]
Comments (235) 72 threads
Show all comments
Showing thread 67 of 72
(Being obtuse is difficult...)