I am making(attempting) a tic tac toe game.
I know this is just the basics, but can someone help me with the next step?
I really dont know where to start. Any Ideas would help. thanks!
if you want to program tic tac toe, there are 2 solutions:
you get the player input and then switch
this requires kind of a list or array, where your program can see what to do next
example: user inputs "X to 1|1"
then your program switches
switch(input)
{
case 11://reaction of your program
case 12://reaction of your program
//and so on: 13,21,22,23,31,32,33
}
this is the easy way
the difficult way(my solution) is that you make kind of an AI(artificial intelligence)
the AI thinks over how the program COULD react, and what the user COULD do then
then the AI decides what to do to have the highest chance to win
this is the VERY difficult way