Skip to content

Instantly share code, notes, and snippets.

inp = """<x=15, y=-2, z=-6>
<x=-5, y=-4, z=-11>
<x=0, y=-6, z=0>
<x=5, y=9, z=6>"""
inp = inp.split("\n")
coords = [
line[1:-1].split(", ")
for line in inp
@colinhowe
colinhowe / robot.js
Created December 4, 2012 15:57
Colin's massive massive
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(10);