Mobile Game Based on Classic Tic-Tac-Toe
This Tic-Tac-Toe game features two modes: Player vs. Player and Player vs. Machine. Developed in Java using the Android Studio platform, it includes a victory tracker and a pseudo-random system to determine which player starts each game.
The Machine mode offers two difficulty levels. The basic level makes moves randomly, while the advanced level is designed to be unbeatable.
The biggest challenge in developing this game was creating the advanced difficulty for the Machine. It uses a recursive algorithm to predict all possible moves, both its own and the player's. By analysing these potential outcomes, the Machine strategically selects moves to maximise its chances of winning, making it invincible.
Android Studio