Day 5

We had the weekend to work on the Tic Tac Toe game, with one of the steps implementing AI (Artificial Intelligence), or in other words, you get to play against the computer. After trying a few different theories, my partner Jen and I ended going with generating a random number, and seeing if the space associated with that number was blank. If it's blank, place an O there. If it's taken, run again until you find one. It ended up looking something like this.

I'm looking forward to seeing others code tomorrow to see how they solved this problem. This looks bloated to me right now, but it works! I want to go back through and see what I can clean out and also see how I can make it smarter. It's not that hard to beat right now. Also, notice the @"donut" in there? I made the O's donuts. Cause, you know, why not? America runs on Dunkin.

ticTacDough.gif