Sure, but first you need to
- make an attempt
- post what you tried
- ask a proper question about what is going wrong, or what to do next.
But if you insist on cheating your way through college, then perhaps this will help. http://clusty.com/search?query=tic+tac+toe+source+code&sourceid=Mozilla-search
Assuming you don't get found out all through college (or your college simply doesn't care about cheats), then you're good.
That is, until you land your first job and your new employer finds your 'degree' is only worth wiping your arse with, you get blacklisted as a fraud, and your only hope of paying off your student debts is to pull 20hr shifts at the local burger joint.
Just don't waste anyone elses time by pretending otherwise on forums such as this.