Skip to content

Instantly share code, notes, and snippets.

View sirmc's full-sized avatar

Sebastian Österlund sirmc

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sirmc on github.
  • I am sirmc (https://keybase.io/sirmc) on keybase.
  • I have a public key whose fingerprint is C4F2 0603 5D58 DC54 91B7 CA2C A995 EC9F 1C18 02A9

To claim this, I am signing this object:

/**
* A bot that sends ships from its biggest planet (by shipcount) to an hostile planet with the most favorable GrowthRate / ships lost ratio.
*
* @author Jelmer Mulder
* @author Sebastian Osterlund
* @author Yoran Sturkenboom
* Date: 11/01/2014
*/
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
/**
* A bot that sends ships from its biggest planet (by shipcount) to an hostile planet with the most favorable GrowthRate / ships lost ratio.
*
* @author Jelmer Mulder
* @author Sebastian Österlund
@sirmc
sirmc / CompetitionBot15.java
Created January 27, 2014 10:07
Competiton bot
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
/**
* A bot that sends ships from its biggest planet (by shipcount) to an hostile planet with the most favorable GrowthRate / ships lost ratio.
*
* @author Jelmer Mulder
* @author Sebastian Osterlund
* @author Yoran Sturkenboom
# a command that works on Linux/Mac
# the arguments are passed in the same order as in the standard command
MAP=$1
PLAYER1=$2
PLAYER2=$3
MODE=$4
NTURN=$5
MAXT=$6
@sirmc
sirmc / led.c
Created July 25, 2012 09:49
TI Launchpad blinking LED
//******************************************************************************
// MSP430F20xx Demo - Software Tole P1.0
//
// Description; Tole P1.0 by xor'in P1.0 inside of a software loop.
// ACLK = n/a, MCLK = SMCLK = default DCO
//
// MSP430F20xx
// -----------------
// /|\| XIN|-
// | | |