×

Tic Tac Toe

Python GUI Tic Tac Toe game

Purpose of the project:

The purpose of the project was to apply and consolidate the skills acquired while studying Python and to deepen my understanding of game development principles. In particular, I wanted to improve my skills in receiving and processing user input, working with loops and conditions, creating and using lists, and checking the correctness of input. The project also gave me the opportunity to master algorithms for analyzing the state of the game and determining the winner. In addition, it was an opportunity to improve my skills in writing clean and structured code.

Objective:

I have successfully developed a game that allows two users or one player against the computer to take turns doing their moves. The computer makes strategic moves in an attempt to win. The game displays the current state of the board and determines a winner or a tie.

Approach:

For the implementation, I used basic Python statements such as loops, conditions, and functions. The game board was implemented as a list, and to determine the winner, I used matching characters in rows, columns, and diagonals. I started by developing the logic of the game for two players, and then added the ability to play against the computer. For the game against the computer, a strategy for making moves was developed. I also used a GUI to create a user-friendly interface that allows players to easily interact with the game. The program checks for a winner or a tie, and has a clear user interface. I was able to create a fully functional tic-tac-toe game in which two players can compete either against each other or against the computer.

Project duration:

The project took about 2 weeks from start to completion, including planning, coding and debugging.

My role:

I planned and implemented the entire project myself, from developing the idea to implementing it into a working application. I also actively sought and applied resources to solve emerging problems, which contributed to my professional growth.

Other Works