Typo fixed, thanks!
On Tue, May 15, 2012 at 8:51 PM, Aaron VonderHaar
> Apart from the typo I mentioned, it looks pretty good!
> Two suggestions:
> - Maybe passing three separate params to computer_player(xs, os,
> empties) would be preferable to passing a world dictionary simply for
> the fact that the syntax is simpler (no matching square brackets and
> single quotes required) so the kids will have to think less to be able
> to play around with it. Lower cognitive workload is good for
> encouraging creativity and experimentation!
I'm passing a dict because I wanted a basic example of one so I could
introduce the concept. Otherwise I think the only new concept is 'if'.
I figured the square brackets were similar enough to those used with
lists, so it wouldn't be much of a hurdle. I'm interested in hearing
other opinions on this though. Will sleep on it myself.
Also, it shouldn't require single quotes - is there a place where I
imply that? Or maybe I'm using them inconsistently and not noticing?
> - Maybe the engine should throw an exception when the computer
> chooses a space that's not empty?
I went back and forth on this. Initially I thought I should disallow
it, but if I don't, and they make the mistake, it gives them an
opportunity to figure out what's going wrong without the computer
saying it outright. I was also curious what would happen if I gave
them an environment where they could write a computer player that
cheats :) Seemed like it might be fun when they discovered it.
But that might be more complicated than is useful.