i want the code of tic tac toe game playing against the computer

i made it with 2 players but i need it against the computer urgently


please thanks :)