First of all I am making a tic tac toe game.
1. how can a set an int to a random number, ie.
it will stay the same throughout as i tried to set difficulty to 100 and it would stay the same.
2. How can I delay the reaction of the computer.
Thanks!
1. how can a set an int to a random number, ie.
Code:
difficulty = 5;
choice = (random() % difficulty) + 1;
if (choice != 2){
}
2. How can I delay the reaction of the computer.
Thanks!