Place your X in the center space or another corner.\n\n You'll have 2 clear routes to victory once your third X is down. If the computer hasn't lined up 2 Os yet, place your next X in a corner. With 3 Xs in 2 corners, you'll be able to win either horizontally or diagonally.
No. It's called impossible for a reason. The closest you can get to beating it is a draw, it's programmed to be impossible.