codebreaker-solver 0.1.0

A solver for codebreaker aka. bulls and cows. Generates guesses which will guess the code in at most 5 tries.
Documentation
  • Coverage
  • 71.43%
    5 out of 7 items documented0 out of 0 items with examples
  • Size
  • Source code size: 25.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pacman82

Codebreaker

About

Codebreaker is a game played with quad paper and pencil. Also knowns as bulls & cows, and popularized as a board game called mastermind. This Command line tool allows you to play the game as the codebreaker guessing the code and receiving a hint after each guess. For more information you may want to visit the wikipedia page about mastermind: https://en.wikipedia.org/wiki/Mastermind_(board_game)

Solver

Next to plainly guessing the code, the user may also enter s to generate a guess, based on a minmax algorithm. Writing this solver is actually the point of this repository. The algorithm is based on Donald Knuths Algorithm for mastermind. It sprinkles in alpha beta pruning and parallizes the search using all cores of the machine.