You will practice:
Fill the content of the methods play, check_for_winner, new_game and the commands inside the while needed to make the TicTacToe behave like this picture.
1def play(position): 2def check_for_winner(): 3def new_game():
X and O.X always starts playing.play <position> for example: play 1 will play for the current player on the position 1 in the list (the second one)X makes a play, it's O's turn (automatically) and vice-versa.There are 2 ways to start:
a) Open this link in your browser with Codespaces (recommended) or Gitpod: https://github.com/codespaces/new/?repo=4GeeksAcademy/python-hello
b) You can clone the following repository on your local computer:
1$ git clone https://github.com/4GeeksAcademy/python-hello
If working locally, you should have python installed.
You should open the terminal on the path of this template and run $ python3 app.py, if everything works correctly, it should show Hello World on the terminal.
You can test your code by typing: $ python3 test.py.
💡 Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>), and upload the code to your new repository using add, commit and push.