Tic Tac Toe

Tic Tac Toe

INFO

Tech stack:
  • Next.js
  • Styled Components

DETAIL

Tic Tac Toe is a classic game that, I believe, most developers have created at least once in their careers. I am no exception. It was one of the first games I developed when I taught myself programming using Python. Later, I created it again while studying Java at school, and finally, I developed it with JavaScript while learning front-end development through FreeCodeCamp.

This recurring project is why, when I encountered the challenge on Frontend Mentor, I decided to take it on again using all the materials they provided. Frontend Mentor is a platform that enhances your coding skills by offering challenges with Figma designs, icons, typography, and images necessary for the project. The challenge is to utilize all the provided materials to build the project, focusing solely on coding rather than on design skills.

This time, developing the game was not much different from previous times, except that it now looks more professional, thanks to the materials provided by Frontend Mentor.

The game features two modes: playing against another human and playing against the computer. In the 'play with human' mode, two players take turns marking their moves on the board. In the 'play with computer' mode, I implemented the minimax algorithm to enhance the computer's intelligence, making the best possible outcome for the player a draw; it's impossible to win against it.

SCREENSHOTS