This file contains 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
// I described the thought processes (SOLID violations, which to fix, how and why) | |
// in my post at http://thedevstop.wordpress.com/2013/03/07/roy-osheroves-solid-katastring-calculator-redux/ | |
// Note that I did this in LINQPad and so instead of NUnit tests, I dumped failures | |
// If I was to do this again, I'd either do it in VS with a test runner. | |
void Main() | |
{ | |
var parser = new IntsFromCommaSeparatedString(); | |
var none = parser.Parse("").ToArray(); |
This file contains 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) {}; | |
var target = null; | |
var intelAge = 0; | |
function log1(value, caption) | |
{ |