We are not, nor have we ever been a 'here is your completed assignment because you asked for it' source of information. Our basic premise is to help you fill the 'gaps' in your knowledge. We help you to solve your own problems. Post some code for how you think it should work, identify where you're having trouble and we will pitch in with suggestions.
do you want to make a tictactoe game that works with its own brain or with predefined moves. i mean game is all about fooling the opponent into situations that bring you victory. so you can either make a program that calculates every possible combination or that makes its moves according to pre-made database.