55 posts · 1376 views · started 2014-07-27 19:48 UTC
PY
Pydro
2014-07-27 19:48 UTC
#1
Let's start a game of Mastermind! I will start by creating the code, and anyone here can make a guess (we will change next game). Instead of colors, we will use the numbers 1-6, and the same number can be used more than once. You guess a 4-digit code using the numbers 1-6. You will have 12 guesses (put the number by each one), and after each guess I will say how many numbers are correct but in the wrong place, and how many are correct and in the right place.
OK, I got a code (rolled 4d6). Who will be the first one to guess!
MA
Matchstickman
2014-07-27 20:36 UTC
#2
Hmmmm.
I will take guess number 1 then.
2 (red), 3 (red), 4 (red), 6 (red)
It's fun when I can pick the numbers to be the same colour!
PY
Pydro
2014-07-27 20:39 UTC
#3
Numbers correct, wrong place: 2
Numbers correct, right place: 1
HK
Humble-Knight
2014-07-27 21:32 UTC
#4
Question: could the numbers repeat? Not asking if they do, just if its allowed in the game
PY
Pydro
2014-07-27 21:37 UTC
#5
Yes, but let’s say you put down X twice, and only one exists, it will say one is right not two.
BL
BlueHairedMeerkat
2014-07-27 21:42 UTC
#6
1156
MC
McBehrer
2014-07-27 21:43 UTC
#7
Ok, then. Guess number 2.
2, 3, 4, 5.
PY
Pydro
2014-07-27 21:47 UTC
#8
I'll go in order, but I will let Mcbehrer change his if he wants before answering it.
Numbers correct, wrong place: 1
Numbers correct, right place: 0
PY
Pydro
2014-07-27 21:56 UTC
#9
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 2-3-4-6: 2/1
2) 1-1-5-6: 1/0
MC
McBehrer
2014-07-27 22:24 UTC
#10
Ok, so there's a 6, no 5 or 1.
6, 3, 6, 4
PY
Pydro
2014-07-27 22:28 UTC
#11
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 2-3-4-6: 2/1
2) 1-1-5-6: 1/0
3) 6-3-6-4: 2/0
BL
BlueHairedMeerkat
2014-07-27 22:34 UTC
#12
4-4-2-6?
PY
Pydro
2014-07-27 22:39 UTC
#13
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 2-3-4-6: 2/1
2) 1-1-5-6: 1/0
3) 6-3-6-4: 2/0
4) 4-4-2-6: 2/0
BL
BlueHairedMeerkat
2014-07-27 22:59 UTC
#14
3241
PY
Pydro
2014-07-27 23:03 UTC
#15
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 2-3-4-6: 2/1
2) 1-1-5-6: 1/0
3) 6-3-6-4: 2/0
4) 4-4-2-6: 2/0
5) 3-2-4-1: 1/2
BL
BlueHairedMeerkat
2014-07-27 23:05 UTC
#16
3-5-4-2?
PY
Pydro
2014-07-27 23:07 UTC
#17
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 2-3-4-6: 2/1
2) 1-1-5-6: 1/0
3) 6-3-6-4: 2/0
4) 4-4-2-6: 2/0
5) 3-2-4-1: 1/2
6) 3-5-4-2: 3/1
BL
BlueHairedMeerkat
2014-07-27 23:08 UTC
#18
5-2-4-3!
PY
Pydro
2014-07-27 23:16 UTC
#19
CORRECT!!!!! CONGRATS!!!!
Ok, who is making the code for the next game?
MC
McBehrer
2014-07-27 23:16 UTC
#20
ok wait.
it's gotta be 3-2-4 something.
I guess 3-2-4-2
MC
McBehrer
2014-07-27 23:22 UTC
#21
damn
BL
BlueHairedMeerkat
2014-07-28 09:28 UTC
#22
Right I have a code. Guess away! :D
HK
Humble-Knight
2014-07-28 12:42 UTC
#23
First guess 1234
BL
BlueHairedMeerkat
2014-07-28 14:37 UTC
#24
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 1-2-3-4: 0/2
RO
Ronway
2014-07-28 14:43 UTC
#25
Second guess 1-6-5-4
BL
BlueHairedMeerkat
2014-07-28 15:22 UTC
#26
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 1-2-3-4: 0/2
2) 1-6-5-4: 0/3
PH
phantaskippy
2014-07-28 15:23 UTC
#27
1-0-5-4
GR
grysqrl
2014-07-28 15:42 UTC
#28
I don't think 0 is an option.
1-5-5-4
PH
phantaskippy
2014-07-28 16:21 UTC
#29
Oh yeah, 6 sided die and all that.
BL
BlueHairedMeerkat
2014-07-28 17:40 UTC
#30
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 1-2-3-4: 0/2
2) 1-6-5-4: 0/3
3) 1-5-5-4: 0/2
HK
Humble-Knight
2014-07-28 17:45 UTC
#31
I guess 1-6-1-4, 1,4 or 6 needs to be repeated
BL
BlueHairedMeerkat
2014-07-28 18:58 UTC
#32
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 1-2-3-4: 0/2
2) 1-6-5-4: 0/3
3) 1-5-5-4: 0/2
4) 1-6-1-4: 0/3
RO
Ronway
2014-07-28 19:02 UTC
#33
1-6-4-4
PH
phantaskippy
2014-07-28 19:37 UTC
#34
1-6-7-4
GR
grysqrl
2014-07-28 20:21 UTC
#35
9-J-*-ü
BL
BlueHairedMeerkat
2014-07-28 21:03 UTC
#36
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 1-2-3-4: 0/2
2) 1-6-5-4: 0/3
3) 1-5-5-4: 0/2
4) 1-6-1-4: 0/3
5) 1-6-4-4: 0/3
6) 1-6-7-4: 0/3
7) 9-J-*-ü: 0/0
GR
grysqrl
2014-07-28 21:16 UTC
#37
1-6-6-4
BL
BlueHairedMeerkat
2014-07-28 22:30 UTC
#38
Squiggle gets the nut! :D
PY
Pydro
2014-07-28 22:36 UTC
#39
Woohoo! Ok, who is making the next code?
HK
Humble-Knight
2014-07-28 22:37 UTC
#40
I got one
PH
phantaskippy
2014-07-29 02:20 UTC
#41
6-5-4-3
HK
Humble-Knight
2014-07-29 02:52 UTC
#42
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 6-5-4-3: 1/1
MA
Matchstickman
2014-07-29 05:27 UTC
#43
To divert slightly, is the 'first best five guesses' in a d6 mastermind game going to be
1111,2222,3333,4444,5555
because then you'll know the exact mix of the string, possibly with less than five guesses? or is there a 'better five' to start the guesses with?
Humble-Knight's game gets a guess too (guess two)
1,5,6,2
BL
BlueHairedMeerkat
2014-07-29 09:53 UTC
#44
I don't think so, but it'll be close. Hmmm... I have to go and do some analysis, be right back.
GR
grysqrl
2014-07-29 12:50 UTC
#45
I would think you could do a little better. For example:
First guess: 1-1-1-1 = 1/0
You know exactly one of them is a 1. You'll never have four 2s. You could carry one of the 1s over to see if you can get a correct placement.
Second guess: 1-2-2-2 = 2/0 (the 1 is in the correct place and there is one 2; next guess is 1-2-3-3)
or
Second guess: 1-2-2-2 = 0/1 (the 1 is in the wrong place and there are no 2s; next guess is 3-1-3-3)
This would get you some more information about placement and still give you the quantity information you were originally getting.
RA
Rabk
2014-07-29 12:55 UTC
#46
I always lead 1111 and then try a variation on the above - i there is one 1, my next guess would be 1222. I know there can't be four 2's and you can get a lot of position information from that guess:
One right, wrong position: 1 is not first, no 2's
One right, right position: 1 is first, no 2's
Two right, wrong position: there is one 2 in first position and the 1 is elsewhere
Two right, right positions: the 1 is in first position, one 2 elsewhere
etc.
[Edit: Ninja'd by the Squirrel! ]
HK
Humble-Knight
2014-07-29 13:31 UTC
#47
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 6-5-4-3: 1/1
2) 1-5-6-2: 1/1
And we were talking about the whole guess solely 4 of some thing when I was explaining this game to some friends yesterday
BL
BlueHairedMeerkat
2014-07-29 16:09 UTC
#48
1-6-4-4
I don't think the '1111,2222,3333...' plan is optimal, in terms of pure efficiency. From a bunch of spreadsheeting, I think you should always be able to get it within six guesses (though I haven't run all the possibilities), which 1111 doesn't guarantee. That said, 1111 is a lot easier to do without the spreadsheets...
HK
Humble-Knight
2014-07-29 17:26 UTC
#49
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 6-5-4-3: 1/1
2) 1-5-6-2: 1/1
3) 1-6-4-4: 1/2
And using spreadsheets for this seems a little over the top
BL
BlueHairedMeerkat
2014-07-29 19:16 UTC
#50
1-4-4-5
Matchstickman's comment made me wonder, and then I had to start making spreadsheets... Not using for the game, and I've stopped on them now, it was just something I needed to do.
HK
Humble-Knight
2014-07-29 21:05 UTC
#51
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 6-5-4-3: 1/1
2) 1-5-6-2: 1/1
3) 1-6-4-4: 1/2
4) 1-4-4-5: 1/1
Oh, I got you. I thought you programmed an algorithm for solving these. My friend said he wanted to write one that would run the game for him
BL
BlueHairedMeerkat
2014-07-29 21:13 UTC
#52
1-1-4-6?
HK
Humble-Knight
2014-07-29 21:27 UTC
#53
Summary
G-U-E-S-S: Numbers correct, wrong place/numbers correct, right place
1) 6-5-4-3: 1/1
2) 1-5-6-2: 1/1
3) 1-6-4-4: 1/2
4) 1-4-4-5: 1/1
5) 1-1-4-6: 1/1
BL
BlueHairedMeerkat
2014-07-29 21:45 UTC
#54
4-6-4-2!
HK
Humble-Knight
2014-07-29 21:59 UTC
#55
That is correct.
I just ran it with the 1-1-1-1, 1-2-2-2, 1-2-3-3... Method and the correct answer pops up on the sixth guess that was as well