Skip to content

Mastermind game with two settings. You can play the game yourself via the console or have the Genetic Algorithm play it for you (guesses in average ~4 steps) and crush your self-confidence.

Notifications You must be signed in to change notification settings

dogatuncay/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind

Mastermind game with two settings. You can play the game yourself via the console or have the genetic algorithm play it for you (guesses in average ~4 steps) and crush your self-confidence.

Implementation based on paper

Installation

If available in Hex, the package can be installed by adding mastermind to your list of dependencies in mix.exs:

def deps do
  [
    {:mastermind, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mastermind.

Running the Game

To play the game yourself from the console, run:

mix run_console_game

Feeling lazy? To have the genetic algorithm play the game for you, run:

mix run_genetic_algorithm

About

Mastermind game with two settings. You can play the game yourself via the console or have the Genetic Algorithm play it for you (guesses in average ~4 steps) and crush your self-confidence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages