Interesting Problem/Puzzle

Post questions or suggestions here.
Locked
dukerox7593
Posts: 1
Joined: Mon May 04, 2009 1:36 pm

Interesting Problem/Puzzle

Post by dukerox7593 »

ok here is the game:
your opponent has a secret number that is 4 digits long. the digits are 0-9 and no digit can be repeated in the number (in other words all 4 numbers are different)
examples: 1234, 1948, 4950
you have to guess the number
when you guess a number: your opponent gives you back 2 numbers (x,y)
number x is the amount of numbers in the right place
number y is the amount of numbers right but in the wrong place
anyone have an algorithm to solve this problem using the 2 numbers given back?
|read|
Posts: 68
Joined: Tue Oct 30, 2007 5:16 pm

Re: Interesting Problem/Puzzle

Post by |read| »

It's mastermind! From the original board-and-pegs to the anthropomorphized flash version, this game remains a classic.

http://www.newgrounds.com/portal/view/427859

(Just keep a mental list of all the possible configurations given what you do know, then cross them off as you learn more. It helps to first look at what you know and figure out what to guess in order to get back the most information.)
User avatar
vicdan
Posts: 1013
Joined: Sun Mar 18, 2007 11:48 am
Location: Western MA, USA
Contact:

Re: Interesting Problem/Puzzle

Post by vicdan »

Forethought Venus Wednesday
|read|
Posts: 68
Joined: Tue Oct 30, 2007 5:16 pm

Re: Interesting Problem/Puzzle

Post by |read| »

Gah! Out of nowhere, the genie of the IP packet. But is this the real Victor, or a v-zombie? I shall attempt a Turing test. How are you, man?
User avatar
vicdan
Posts: 1013
Joined: Sun Mar 18, 2007 11:48 am
Location: Western MA, USA
Contact:

Re: Interesting Problem/Puzzle

Post by vicdan »

Does not compute. :D
Forethought Venus Wednesday
Locked