Skip to content

Instantly share code, notes, and snippets.

View legarspol's full-sized avatar

Pol legarspol

View GitHub Profile
@legarspol
legarspol / robot.js
Created December 6, 2012 14:24
Zolmeister
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {
@legarspol
legarspol / robot.js
Created December 6, 2012 14:22
Roberto
//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(100);
@legarspol
legarspol / LICENSE.txt
Created December 27, 2011 22:57 — forked from 140bytes/LICENSE.txt
Plus or minus Game - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE