I have been working on teaching myself Python over the last few weeks along with other things. I hate to admit that I can get distracted by bright shiny things. A project that I ran across was tic tac toe. I decided to watch a Youtube video on someone coding it. He did a great job of explaining the code and he had his code out on GitHub.
I tweaked what he had so that the person could choose 1 player and play against the computer. Since I am an only child, I can appreciate having a computer to play against. Doing the project helped me learn about using a helper file with functions, passing variables, using case statements and loops. I was able to find some logic to always win in tic tac toe if the 1 player plays the middle and the second player doesn’t play a corner. Player 1 or the computer will always win in that scenario. It is basic stuff but I have not been doing some of this for a while and the syntax is different then c or c++.
At some point, I should probably write the code from scratch but it was a fun project. Some of the machine learning, I might be able to do a better job on. It was great to have some time off over the weekend to spend working on the project.
I am debating on creating a Projects page for this website or maybe just linking to my GitHub account. Maybe embedding part of the user account project page into the Projects page. We have so much opportunity in this life to learn and do.
Next step, create a GitHub account. I need to do this for some Microsoft Learn courses as well.
Beginner Python Project From Scratch: Tic Tac Toe by CDcodes
His coding files on GitHub by ChristianD37