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”