Logo
Logo

Mastermind

Mastermind is a responsive, mobile-friendly implementation of the classic game with multiple modes and difficulty levels. It includes two game modes - Numbers and Colors, easy/medium/hard difficulty levels that configure combination length and guessing time, score tracking, hints and animations, and an adjustable timer based on difficulty.

Mastermind

Challenge

This project was part of a coding challenge presented during a job interview. The challenge was to build a web application version of the classic two-player game Mastermind that could be played against the computer. It required implementing the full gameplay logic, difficulty levels, scoring, and other features to create a complete and playable solo Mastermind game online. The goal was to demonstrate programming abilities by building a responsive web app implementation of this classic game within the given time constraints.

Solution

While the game of Mastermind is traditionally played with two players, this web application allows users to play against the computer. The user can choose the difficulty level, and the game is designed to be responsive and mobile-friendly. The application is built with Java, Spring Boot, Thymeleaf, and MySQL, and it is deployed on Render.

Mastermind
Mastermind
Designed & built by Mostafa Wahied
© Mostafa Wahied 2026