Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple mastermind solver, hand optimzied to be Pretty Darn Fast™
C++ CMake
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
Agent.cpp
Agent.h
CMakeLists.txt
COPYING
Controller.cpp
Controller.h
Environment.cpp
Environment.h
README
State.cpp
State.h
main.cpp
test.cpp

README

Personal project that solves all games of Mastermind

Most terminology is consistent with the Wikipedia article[1] on Mastermind

Current features:
* displays statistics for distribution of games solved vs number of guesses taken
* solves all games of standard 4 peg, 6 color Mastermind in an average of 5.7 moves
* variable number of pegs or colors
* uses multiple threads for computation
* automatic detection of number of threads to run

Requirements:
* Boost 1.44
* cmake 2.8

Planned features include
* interactive mode vs computer as codebreaker and codemaker
* additional codebreaker algorithms

[1] http://en.wikipedia.org/wiki/Mastermind_%28board_game%29
Something went wrong with that request. Please try again.