This is CodeBreaker written in Java.
What is the origin of CodeBreaker? (Bulls and Cows, Hit and Blow)
Only execute bat file.
$ run.bat
Default: 7
You can specify a maximum value for the code. This must be less than 10.
Default: 3
You can specify a length value for the code. This must be less than maxNumber
.
// generate a code that max number is 7 and length is 3
CodeBreaker game = new CodeBreaker();
// generate a code that max number is 9 and length is 4
CodeBreaker game = new CodeBreaker(9, 4);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.