O's and X's

The Project

My project is a Tic Tac Toe game coded in Python which uses the Pygame library. There are 3 modes to play the game: -Player vs Computer is a Player against a Non-smart computer that randomly chooses a spot on the screen to go to. -Player vs Genius Computer is a Player against an AI based computer using the Minimax Algorithm that will only win or draw so it's impossible for it to lose. -Player vs Player is simply a normal Tic Tac Toe game just like the one you would do on paper. I chose to make this project because Tic Tac Toe is very popular and a handy game to play and have some fun especially while many people are stuck at home. What did you find difficult while making your project and how did you work it out? What I found the most difficult was to learn and implement the minimax function in my code. I worked it out by using free resources online. Also, figuring out how to use the Pygame mechanics was challenging because this module has a wide variety of functionalities. Is there anything you would do differently or you would add if you had more time? If I had more time, I would improve the UI of the game and add fun extra modes to it like a 5x5 board. Also, I would like to rewrite the code using Object Oriented Programming because the code is becoming too big.

Games

About the team

  • United Kingdom
  • Code Club

Team members

  • Abhigyan