Not saving input and updating.

Pages: 123
Just control because you cannot literally assign a string numbers
to an int unless you use something like atoi();
Last edited on
All right, Now I've added a scoreboard.
Last edited on
I going to take a break from this project. I would appreciate it if someone would look at the entire project and tell me what I could have done better.
Judging by the way my program looks, I would really like to reduce the amount of if statements that I have. How do I incorporate a for loop that checks if tile doesn't have an X or O(In other words, check to see if the tile is valid).
I was thinking of something like this.

pseudocode

1
2
3
4
5
6
7
8
9
10
11
12
for (int i = 0; i < rowSize; i++)
{
     if(if the tile is blank)
     {
          place letter
     }
    else
       output-This spot has been taken Try again.

      Ask the user to pick another spot
}
Last edited on
Topic archived. No new replies allowed.
Pages: 123