Skip to content

This program has 2 options. First one allow you to play Mastermind game with your computer. In second way you chose code, and you computer try to solve it using my implementation of Genetic Algorithm

Notifications You must be signed in to change notification settings

Agreal1118/Mastermind-genetic-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind-genetic-algorithm

This program has 2 options. First one allow you to play Mastermind game with your computer. In second way you chose code, and you computer try to solve it using my implementation of Genetic Algorithm

https://en.wikipedia.org/wiki/Mastermind_(board_game) - rules of game

Sorry for my english, I'm not native speaker.

There are 3 main files: judge.py computer.py and player.py

If you want to play with computer run player.py and follow the instructions If you want to watch how Genetic Algorithm works run computer.py file and follow the instruction The last file is auxiliary

If there will be some polish words just let me know, i will fix it.

The first sequance is (for length:4 and colours:4 it is "1 2 3 4". for length:6 and colours:4 it is "1 2 3 4 4 4". for length:4 and colours:6 it is "1 2 3 4".) not random. Why? Because if it is determine in that way, programm is a bit more performant.

Have a fun!!

About

This program has 2 options. First one allow you to play Mastermind game with your computer. In second way you chose code, and you computer try to solve it using my implementation of Genetic Algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages