Here's my original program:
Here's my program adapted with functions:
I had a little trouble getting this to evaluate correctly. I forgot to have my youWin function return any value at all, so it didn't change the win condition.
by Colin Nickels
I had a little trouble getting this to evaluate correctly. I forgot to have my youWin function return any value at all, so it didn't change the win condition.