MasterMind

时间:2013-10-23 01:20:19
【文件属性】:

文件名称:MasterMind

文件大小:6KB

文件格式:JAVA

更新时间:2013-10-23 01:20:19

MasterMind

Master Mind was traditionally a 2 player board game played with pegs. Now many computer versions exist. Each person would take a turn playing the game. The person not playing would select 4 coloured pegs from a possible 6 colours, then arrange these pegs in some random order behind a blind, ie. hidden from the player. The player would then try to guess the colour pattern by duplicating the pattern in a series of holes in the playing board. After each set of 4 pegs is inserted, the person not playing would indicate how many of the player's pegs were in the correct position (small black peg), and how many were the correct colour but in the wrong position (small white peg). From this meager feedback, the player would have to lay another 4 pegs down, after which the feedback was given again. This cycle continues until the player correctly identified the hidden pattern of pegs.


网友评论

  • JAVA code。值得一看,有这个游戏的必胜算法就更好了。
  • java 写的,不是想要的c,不过值得一看
  • 是用java写的,对于类似程序(猜字母、数字什么的)有参考价值

相关文章