The final TicTacToe Game source code
Charles — Thu, 05/07/2009 - 20:52
Hey GirlTech interns, I finally got around to pulling the source code for the TicTacToe game you guys wrote from that laptop, cleaned it up a little, wrote some comments and posted them up to this website. You can download the code from the Lectures page here
http://www.etc.cmu.edu/projects/girl-tech/?q=node/167
Let me know if you have any issues or questions. I would suggest you guys read over the code again and try to understand it. Also you still have some work to do in the TTTPlayerAI class to make the computer smarter than it is now (look for the "TODO" parts). You can also expand the game and maybe make it into a Connect-Four game or something similar (way more things to work out there, like the pieces sliding down to the bottom etc). Just play around, experiment and have fun.
Also note that I've included the BioloidArm robot arm code including your favorite Inverse Kinematics math (it's in Armature). See if you can figure out how things are working in there.
- Charles's blog
- Login to post comments

