Mastermind game

来源: endofsuburbia 2010-02-01 08:19:45 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (1319 bytes)
This is the logic game of Mastermind. If you haven't played it before, here's how it works. There is a board that is sectioned off into many rows, each row having four slots in which pegs can be inserted. There are six different colors of pegs: green, red, yellow, brown, dark-blue, light-blue. There are two players, A and B. First, A makes up some arrangement of four pegs along a row, the colors and ordering of which are his or her choice. Then B spends the rest of the game trying to guess what A's arrangement is. For every guess that B makes, A will respond by putting some black and/or white pegs right next to A's guess; the black and white pegs are interpreted as follows:

Black keypeg = one of B's pegs is the correct color and in the correct position
White keypeg = one of the B's pegs is the correct color but in the wrong position
So if B manages to guess all four colors and positions correctly, A will respond with four black keypegs, and the game is over. The goal is to determine A's secret arrangement in the minimum number of guesses. Below, we see a completed game of Mastermind. Apparently the player was able to determine A's arrangement by using only four guesses. What's is A's arrangement?

所有跟帖: 

Mastermind game's image is here -endofsuburbia- 给 endofsuburbia 发送悄悄话 endofsuburbia 的博客首页 (48 bytes) () 02/01/2010 postreply 11:09:50

回复:Mastermind game's image is here -wxczcbm- 给 wxczcbm 发送悄悄话 (29 bytes) () 02/01/2010 postreply 20:33:04

second image -endofsuburbia- 给 endofsuburbia 发送悄悄话 endofsuburbia 的博客首页 (48 bytes) () 02/01/2010 postreply 11:59:45

回复:second image -wxczcbm- 给 wxczcbm 发送悄悄话 (34 bytes) () 02/01/2010 postreply 20:49:00

Both answers are correct. -endofsuburbia- 给 endofsuburbia 发送悄悄话 endofsuburbia 的博客首页 (0 bytes) () 02/02/2010 postreply 06:30:59

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”