This is the code that I wrote to make that little green motherfucker fill the goddamn square. It is supposedly the best solution (my prof said three states and six rules so). It’s not great, since it backtracks, but it’s the best so suck my dick, assholes. I was one of the first in my class to solve it. (Not because I knew what I was doing, though; I was just pissing around and replacing shit with other shit.)
Advertisements