This project was the homework assignment of the course CENG-443 when we (Cem Aytar, Zeynal Zeynalov) were juniors at Computer Engineering Department of Middle East Technical University. If you find it useful, you can use it free for any purpose.
https://github.com/caytar/MasterMind-Game-in-Java