The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hi, dude, can you solve this question by python3 language. Also with my extra credit. You do not need to do the design part, i will do that after you give me your code.Â
Â
Assignment #92-D Arrays: TicTacToeDesign Due: Sunday, 11/20/16, 11:59pmImplementation Due: Sunday, 11/27/16, 11:59pmYou will write a program that plays the gameTic-Tac-Toe. TicTacToe is a game played on a3x3 board, where players’ alternate turns selecting an empty position on the board to place theirgame piece (traditionally Xs and Os for game pieces).The first player to get 3 of their ownpieces in a row (diagonally, horizontally, or vertically) wins.If the board fills and there are nowinners, then the game is tied.First, prompt the user for the character each player wants to choose.Print the empty board,and then prompt the player(s) for their position on the board, printing the board after each turn.If the player chooses a position on the board that is already occupied, you must prompt them foranother position on the board!!!Ask the user if he/she wants to play again, and keep track ofthe number of wins for each player, as well as the number of ties.Print this information at theend of all the games played, after the user no longer wants to play.Tic-Tac-Toe Error Handling/Recovery:Player’s board choice is not appropriate, such as a non-positive int for row/columnPlayer chooses a position that is not on the board, i.e. row 5, column 2.Player chooses a position on the board that is already occupied.Player 2 chooses Player 1’s character/game piece.Requirements (Each is an automatic 10 point deduction!!!):You must have a main function and a print board function.Your code cannot contain any global variables or statements, except a global call to main.Each function with comments including description, parameters, preconditions,postconditions, and returns.Example Tic-Tac-Toe:Player 1: What character do you want? XPlayer 2: What character do you want? O||-------------||-------------||Player 1: Where would you like to put your X? 0 0X ||-------------||-------------||
Attachments: