Talk:Mastermind

From Rosetta Code
Revision as of 19:59, 12 July 2019 by Wherrera (talk | contribs)

Duplicate of Bulls and cows task

Mastermind is just a modern name for the game Bulls_and_cows, for which there is already a page.

(unsigned)


Except that the game of   Bull and Cows:
  •   limits the characters to nine decimal digits   (usually one ───► nine),
  •   the number of characters (decimal digits) in the guess is mandated to be four,
  •   has scoring,
  •   has a limit for the number of guesses,
  •   doesn't allow duplication (replication/repeats) of any decimal digit,
  •   and has less   (and different)   requirements for the display.

  -- Gerard Schildberger (talk) 09:47, 31 January 2017 (UTC)

Concerns about Julia (maybe other) implementation(s)

Looking over the Julia implementation (and I'm not familiar enough with all of the other languages on this page to say it's an exclusive problem, just able to read Julia to notice it), it seems that there is potential for more white circles (or O's for text version) to be shown than there are occurrences of some letter in the original code string. For example, with code ABCD, guess AAAA should output X--- and I believe this implementation will output (again, with graphics instead of lettering) XOOO.
Zacharymatson (talk) 03:01, 12 July 2019 (UTC)

See official rules for the board and peg game: http://www.boardgamecapital.com/game_rules/mastermind.pdf
The relevant line in the pdf is "No Key Peg to indicate a color that does not appear at all in the secret code." So a - is not ok there. --Wherrera (talk) 19:59, 12 July 2019 (UTC)