Source code for tic tac toe

Ask questions about projects relating to: computer science or pure mathematics (such as probability, statistics, geometry, etc...).
Locked
jd100293
Posts: 12
Joined: Sat Sep 02, 2006 7:03 am

Source code for tic tac toe

Post by jd100293 »

Can I please have a source code for tic tac toe? I can make the AI players I just can't get the "base" code down. The incremcent moves code peice messes it up? Please help my data is due 10/16/06. Thank you :)
Taed
Former Expert
Posts: 29
Joined: Thu Aug 25, 2005 3:48 pm

Post by Taed »

No one here is going to help you to the extent of giving you source code. After all, that would be doing the work for you!

It seems like you've gotten a good chunk of the work done already, now you just need to debug it.

Some general advice is that you should add a lot of PRINT (or whatever the function is for your computer language) statements to let you know the state and paths through the code that it is taking as it makes each move. That should help you find your mistake or cases that you haven't handled yet.
Locked

Return to “Math & Computer Science Sponsored by Hyperion Solutions Corp”