Tic-Tac-Toe
tabs -> spaces

Not a big deal, but if you're working with other people spacesa
are the standard in Python

You'll want to figure out how to make your text editor put four
space when you hit tab - did you say you were using TextWrangler?
If so, try something like
http://stackoverflow.com/questions/5750361/auto-convert-tab-to-4-spaces-in-textwrangler
filename change:
* don't use uppercase for modules (bad style)
* don't use dashes for modules (makes it impossible to import from another file)
* put a .py at the end so this can be imported from other python files
fixed error you found

What did the error you got say?
Was it "Name Error: name 'row' is undefined?"
If so, does that make sense?
unimportant whitespace changes
formatting preferences
Since it doesn't matter, just making that clear in the code
note
fix formatting
linebreak formatting

I prefer parens to backslashes, that's not a universal preference though
Don't check the diagonals three times
shorten, and change variable name ways -> way

If a "ways" is a way to win, it seems like it should be singular
didn't understand why gets instead of []

on counters, d[random_key] -> 0
note
part 1 of refactor to simplify AI

Yes, it's using indices now instead of the actual values
(in Python we'd rather not do that) but before we
had to encode the information twice - once in two_of_three,
and once again in AImove. Using indices is better than
duplicating logic.
note
simpler AI code
note
simpler look_ahead
note