This project, completed as part of my A-Level Computer Science course, is an online version of the Mastermind board game written using TypeScript and the React web framework.
Table of Contents
The way it works is similar to the way the game Wordle (New York Times) works. The player has to guess a randomly-generated 4-colour sequence across 6 guesses. There are 6/8/10 colours that can be included in the sequence and colours can be repeated in a sequence.
Guess the 4 colour sequence in 6 tries
- Each guess much contain 4 colours of the 6/8/10 available
- To begin, select your chosen colours on the first row and press submit, and repeat this until you guess correctly, or have guessed 6 times.
- The colours of the circles next to your guess will change to show how close you were to the correct sequence
- A white circle means that your guess is in the sequence and in the position selected
- A red circle means that your guess is in the sequence, but in a different position
- A hollow circle means that your guess is not in the sequence
To win, you must guess the sequence correctly in 6 guesses or less, and you lose if you fail to do so.
The website is adapted to be used on mobile as well as on a desktop:
Mobile Version:
Desktop Version:
Users have the option to choose whether or not their sequence made up of 6, 8 or 10 colours, allowing users to change the game based on their skill level