Hey all,
So I just started learning Java not too long ago and have been struggling with creating useful objects. A lot of the material in the book I'm reading covers technical details of the Java language itself without much emphasis on designing classes. I was hoping that someone would be willing to take a look at a class I made and point out some of the things I've done wrong so I can work on improving them.
The object I tried to create was a
Mastermind game. The game consists of one player creating a unique four element code of six colours and the other playing attempting to guess it. After each guess the code maker indicates whether the code breaker has guesses a correct colour or a correct colour and position. I know that the code is likely ugly but the only way it's going to get prettier is if I practice and recognize my errors. Feel free to criticize my naming conventions, class design, method creation and what-have-you.