Today I completed one of the many programs that I will develop, it is the famous game called Tic Tac Toe, thanks to CodeAcademy I have learned about this world of programming and I am totally in love because I love challenges and one day I hope to be a great programmer, Like many of those who are on this platform, here I leave my code, if you are interested in seeing it, any tips to improve, I am all ears.
love
6 Likes
Hi, what a nice implementation!, i kept playing with it and with the code a lot.
.
My humble suggestion is to double check if the input is not a digit, in the Player object, so the program won´t crash:
def choose_box(self):
position = input(f"{self.name}, seleccione donde desea colocar su {self.team}: ")
while position.isdigit() == False:
print('\nDebe ingresar un número entre 1 y 9')
position = input(f"{self.name}, seleccione donde desea colocar su {self.team}: ")
return position
Please feel free to check my code and add me at github if you want.
Thanks for sharing.
1 Like
By the way, i just forked it and made the pull request into your repository, just for practicing. Have a nice day