Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace TestThing {
public interface IPrimeTest {
IEnumerable<int> CalculatePrimes(int max);
}
@Goz3rr
Goz3rr / robot.js
Created December 5, 2012 18:50
Kuub
//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);
@Goz3rr
Goz3rr / robot.js
Created December 5, 2012 13:23
GozBot
var Robot = function(robot) {
robot.clone();
};
var Target;
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if(Target != null) {
robot.rotateCannon(360);