aichallenge/aichallenge — pull request #359 by gcp (2011-11-09 09:45:28+00:00)
Title: Fix Java/CoffeeScript bugs when input chunks end in the middle of a line.

There is a bug in all node.js based bots: they are parsing input on the assumption that they are always given complete lines, but there is no such guarantee in node.js.

As a result, they can occasionally get stuck (if the line is split in the middle of the "go" command, which requires "luck") or start to order the wrong ants around (if the line is split between the ant and the ant color).

I did some basic testing that this runs and fixes the issue.