This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'cinch' | |
| require 'set' | |
| require 'yaml' | |
| # I'm not using this, but we can think about it. | |
| module Cinch; class Authorization | |
| class Group | |
| attr_reader :authnames |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (me.getX() == map.getWidth() - 3 && me.getY() == 8) { | |
| me.move('right'); | |
| } | |
| if (me.getX() == map.getWidth() - 2 && me.getY() >= 7 && me.getY() <= 15) { | |
| me.move('down'); | |
| } | |
| var seen = {}; | |
| var frontier = []; | |
| var moves = map.getAdjacentEmptyCells(me.getX(), me.getY()); |
NewerOlder