Uunbeatable TicTacToe
October 2021 - November 2021
Sole Contributor
I enjoy designing a lot, but I also love to code. This project was a combination of both, which I thoroughly enjoyed.
Similar to the snake project, I split the project into smaller stages to help me accomplish the mission easier. Beginning with the simple window display, to configuring the colors and designing the layout for the game, to actually coding the design and algorithm was inspiring.
The game uses a machine-learning algorithm ,called minimax algorithm, which makes sure that the computer always wins no matter how hard the user tries. This algorithm simultaneously minimizes the chance of user to win while maximizing the chance of computer to win. Although it sounds complicated, it was a beginner friendly algorithm and a lot of fun to code and test.
The final draft of the game uses the pygame module of python, has a resizable window, an option for the user to play any letter and replay function.