Question: In the update to the tic - tac - toe game that introduced loops, why were the players changed to variables? The player names needed

In the update to the tic-tac-toe game that introduced loops, why were the players changed to variables?
The player names needed to be hard coded.
The names X player and O player cannot be used in loops.
A loop has to have two variable names to execute.
A variable needed to be used within the loops to switch between players.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!