Lab 6: Tic-Tac-Toe with Arrays & Functions

Quiz:

The quiz will be available during the first 5 minutes of lab:

    • Your lab TA will tell you the password you will need to get into the quiz for your section.

    • You may use either one of the lab machines or your own laptop.

      • For the lab computers your account name and password are the same as your UIC NetID and password.

    • Please Click on Your Lab Time: 9am, 10am, 11am, 12pm, 1pm, 2pm, 3pm, 4pm, 5pm



Preface:

  • Please enter code only where it says // CODE HERE

  • Otherwise uncomment and add parameters to your function calls in main!!

Step 1: Display Board (2 Points):

  • Finish the function for displaying the board using the array and a loop

  • Given to you are two parameters

    • arr: Holds the characters of the board

    • N: Holds the number of elements in the array

Step 2: Make Move and Move is valid (2 Points)

  • Both these functions don't have any parameters within their header.

  • You must add what parameters you think is necessary to finish the function

  • **WARNING**: You must uncomment and check main to make sure the correct functions are uncommented and add the parameters to those function calls.

Step 3: There is a win: (2 extra credit points)

  • Using the array check to see if either of the players won.