Ye Olde TicTacToe

It is time. Time for the one of the greatest rites of passage of all time… Programming Tic Tac Toe.

I’ve been going through the great Edube Interactive Python beginner course and I was sort of expecting it to show up at some point.
They restricted …


This content originally appeared on DEV Community and was authored by Ricardo Giro

It is time. Time for the one of the greatest rites of passage of all time... Programming Tic Tac Toe.

I've been going through the great Edube Interactive Python beginner course and I was sort of expecting it to show up at some point.
They restricted my moves a bit by setting up some functions beforehand; I didn't see the use in a couple of them at the start but since they were there, I tried to incorporate them into my solution. It made the whole thing even more fun :)

I already programmed ConnectFour before so this, although still a challenge, wasn't completely new.
I coded the whole thing in about 3 hours but I have to say, it's probably some of the sloppiest code I've ever written. It really drives home the need to learn best practices from the start, which is harder than you'd give it credit to be honest. Lots of good tutorials on how to code, but learning best practices requires a non-basic knowledge of whatever you're learning.
But all in due time.

Do you remember when you first programmed Tic Tac Toe? What challenged you the most? =D


This content originally appeared on DEV Community and was authored by Ricardo Giro


Print Share Comment Cite Upload Translate Updates
APA

Ricardo Giro | Sciencx (2022-04-21T01:53:12+00:00) Ye Olde TicTacToe. Retrieved from https://www.scien.cx/2022/04/21/ye-olde-tictactoe/

MLA
" » Ye Olde TicTacToe." Ricardo Giro | Sciencx - Thursday April 21, 2022, https://www.scien.cx/2022/04/21/ye-olde-tictactoe/
HARVARD
Ricardo Giro | Sciencx Thursday April 21, 2022 » Ye Olde TicTacToe., viewed ,<https://www.scien.cx/2022/04/21/ye-olde-tictactoe/>
VANCOUVER
Ricardo Giro | Sciencx - » Ye Olde TicTacToe. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/04/21/ye-olde-tictactoe/
CHICAGO
" » Ye Olde TicTacToe." Ricardo Giro | Sciencx - Accessed . https://www.scien.cx/2022/04/21/ye-olde-tictactoe/
IEEE
" » Ye Olde TicTacToe." Ricardo Giro | Sciencx [Online]. Available: https://www.scien.cx/2022/04/21/ye-olde-tictactoe/. [Accessed: ]
rf:citation
» Ye Olde TicTacToe | Ricardo Giro | Sciencx | https://www.scien.cx/2022/04/21/ye-olde-tictactoe/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.