Your task: Create a Tic Tac Toe game. You are free to use any IDEyou like. Here are the requirements:2 players should be able to play the game (both sitting at the same computer)The board should be...

Your task: Create a Tic Tac Toe game. You are free to use any IDEyou like.
Here are the requirements:2 players should be able to play the game (both sitting at the same computer)The board should be printed out every time a player makes a moveYou should be able to accept input of the player position and then place a symbol on the board.Your code should be well commented and have at least the followingfunctions:
Write a function that can print out a board. Set up your board as a list, where each index 1-9 correspondswith a number on a number pad, so you get a 3 by 3 board representation. Use the numeric keyboard as anexample.Write a function that can take in a player input and assign their marker as 'X' or 'O'. Think about using while
loops to continually ask until you get a correct answer.Write a function that takes in a board and checks to see if someone has won.Write a function that uses the random module to randomly decide which player goes first. You may want to
lookup random.randint() Return a string of which player went first.Write a function that checks if the board is full and returns a boolean value. True if full, False otherwise.Final output should show a tic-tac-toe board that is completed and winner announced.
Sep 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here