import random
Participation: Functions in Tic Tac Toe
The game Tic Tac Toe is pretty simple, right? Well, it can be pretty complicated. There are many tasks to perform in Tic Tac Toe, and I want you all to think of a few. Please post a minimum of two tasks that need to be performed in the game. For example, the board has to be drawn (this can't be one of your two). It is okay if you have the same answer as someone else as long as you thought about it!
Please submit by Friday, 10/9, at 11:59PM CST.
18 discussions
2. Create a board 0-8
3. ask user to be X or O
2.Ask the user if they wanna play again
2) Set up the computer's moves to be random
Changing the marking letter from an "x" to "o" to mark the spaces
task 2- ask the player if they are X or O
task 3- ask the player what coordinate they want to place there turn
Task #1 Tic Tac Toe board has to be drawn
Task #2 Ask the user whether they want to input Xs or Os
Task#3 Ask the user where on the board they would like their input to be
Task #2: Ask who is making the first move
Task#3: Make sure that the space is open
Task#4: If/Else statements to see if there are three in a row or not
2nd: You need to ask whether they would like to be X or O
3rd: Then let the user pick a number spot to put down their X or O
4th: then when the user has either gotten 3 in a row or lost or tied the user will be prompt to play again
5th: they can repeat the process again
2) determine the winner by three X's or O's in a row or diagonal
3) reset the board
Play until 3 in a row of the same letter occur or until there are no more spots available
Ask the player if they would like to play again
ask the users if they want to be X or O and set the user to their choice.
2nd Task:
label the tic tac toe gride 1-9 and ask the user what number they want.
3rd Task:
if the user gets three in a row, for example, if x=1,5,9 and x=user1. user 1 wins.
Allow the player to pick which spot they want to place an "X" or "O"
Display to the player that they have won when three spaces in a row line up
Reset the board for the next game
Task 2: check to see if that given space is available
Task 3: determine a winner
Store the players name in a variable of who is "x" and "o".
2nd Task: Once the game is over you can set a code for asking the computer for a replay and then yall could play a second game.
Will have to ask user for an input of where to place X or O
Each space will have to be given an assignment for the user to enter
Those assignments will have to be printed for the users to see them before prompting for their input.
1) Determine whether or not a player has one
2) Select a move for the computer to make
3) Update the board state when a move is made
4) Allow the player to pick X or O
2. must make sure the spot on the board is available
3. determine how a player wins