This is a Java/Swing implementation of the classic board game "Mastermind", where the codebreaker (you) plays against the codemaker (the computer).
The codebreaker will try to guess the sequence of 5 colors which are automatically generated from 10 possible colors. Once the codebreaker has made his guess, the computer will provide feedback using black (match in color and position), white (match only in color) and grey (no match).
The codebreaker has 20 turns to crack the code, working from the top to the bottom. The codebreaker may give up at any time, at which point the secret code is revealed
This was developed for a software design class to demonstrate the use of TDD.
You can execute the build using one of the following commands from the root of the project:
- ./gradlew (on Unix-like platforms such as Linux and Mac OS X)
- gradlew (on Windows using the gradlew.bat batch file)