Lurker News

Comments (235) 72 threads

Show all comments

Showing thread 67 of 72

gabemart9 replies#
Can anyone give me a hint for level 12?
XaspR8d#
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...)

rooodini#
I made the robot follow a cosine curve. Cute but ridiculous solution.
pilom#
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.
lockes5hadow#
You could always implement a-star, a searching algorithm.
frzen#
You could create your own robot control system based on pressure plates as well
cheepin#
I personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.
icemelt8#
What if the triangular walls were straight?
bluesnowmonkey#
I encoded a route.

    moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]
subtenante#
map.getPlayer()['hasItem'] = function yes () { return true; };