Skip to content

Instantly share code, notes, and snippets.

'use strict';
window.onload = function () {
var command =
'5 3 \n 1 1 e\n rfrfrfrf\n 3 2 N \n frrffllffrrfll\n 0 3 w\n LLFFFLFLFL';
// this function parses the input string so that we have useful names/parameters
// to define the playfield and the robots for subsequent steps
var parseInput = function (input) {
// task #1
// replace the 'parsed' var below to be the string 'command' parsed into an object we can pass to genworld();
// genworld expects an input object in the form { 'bounds': [3, 8], 'robos': [{x: 2, y: 1, o: 'W', command: 'rlrlff'}]}
@tacodog
tacodog / keybase.md
Created February 5, 2016 15:23
keybase identity

Keybase proof

I hereby claim:

  • I am tacodog on github.
  • I am tacodog (https://keybase.io/tacodog) on keybase.
  • I have a public key whose fingerprint is 286A A704 AE65 95A4 2471 DE52 7962 CB2E 84E2 B6F7

To claim this, I am signing this object: