4 ms·
Can anyone give me a hint for level 12?
by gabemart 13y ago
Can anyone give me a hint for level 12?
- XaspR8d 13y agoYou'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 13y agoI made the robot follow a cosine curve. Cute but ridiculous solution.
- pilom 13y agowow 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 13y agoYou could always implement a-star, a searching algorithm.
- frzen 13y agoYou could create your own robot control system based on pressure plates as well
- cheepin 13y agoI personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.
- icemelt8 13y agoWhat if the triangular walls were straight?
- bluesnowmonkey 13y agoI encoded a route. moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]
- subtenante 13y agomap.getPlayer()['hasItem'] = function yes () { return true; };