Skip to content

This is a java OOP of mastermind game and also includes an AI that use Knuth Algorithm to guess the code

License

Notifications You must be signed in to change notification settings

franco-marino/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

Mastermind

This is the project I've created for my programming exam of the IT security course at the University of Milan. It has only been tested on linux (fedora and ubuntu), on windows I'm not sure Unicode characters appear on the command prompt or on powershell. There are no problems using Git Bash and following this procedure on Stack Overflow.

The game

There are two game modes: Human vs AI and AI vs Human. In the first one the game generates a random code and there are 10 attempts to guess. In the second mode the user chooses a code and the AI guesses it using the Knuth Five guess algorithm (Wikipedia explanation)

How to play

The game is written in Java you must install it on your PC.

git clone https://github.com/franco-marino/mastermind.git
cd mastermind/Mastermind/dist
java -jar Mastermind.jar

And then play it!

Screen

Menu

Menu

Human vs AI

Human vs AI)

AI vs Human

AI vs Human

Author

Franco Marino

[If you want to suggest a change or find some errors, don't hesitate to contact me]

About

This is a java OOP of mastermind game and also includes an AI that use Knuth Algorithm to guess the code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages