# 15 Questions

Following 20 questions, I thought I’d create a game that’s a bit more mathy.

I come up with a 5-digit (digits do not repeat) number and you try to guess it. (0-9, 0 can be leading number)

For every guess, I will provide a clue, in the form of A: #, and B: #. The number of As means the number of digits that both exist and are in the correct position. The number of Bs means the number of digits that exist but are not in the correct position.

For example
My number: 12345
Your guess: 56789, I say: A: 0, B: 1
Your guess: 13579, I say: A: 1, B: 2 (since 1 both exists and is in the correct position, and 3 and 5 exist but are not in the correct position)
…etc.

Try to guess my number in 15 guesses (I have no idea if 15 is enough or too many, but since we’re all actuaries here, I trust that you will be brilliant).

I have a number

Did your number change in the example from 12345 to the first guess? I don’t understand the second guess explanation, unless it changes to be 1 exists and in the right position, and 3 and 5 exist, but in wrong position.

oh crap. I messed it up

Mistakes do happen frequently for this game…I should make up a rule for that. Since a mistake can lead the guesses astray, if a mistake is discovered, the guess count resets to where the mistake took place.

For example,

if I make a mistake at guess 3, and the game continues to guess 15, when I post the revised guess 3 clues the guess count resets to 3.

13579

1. (Celalta) 13579. A: 3 B: 0

23571

god damn you’re lucky

1 Like
1. (Celalta) 13579. A: 3 B: 0
2. (soyleche) 23571. A: 3 B: 0

43576

• (Celalta) 13579. A: 3 B: 0

• (soyleche) 23571. A: 3 B: 0

• (Celalta) 43576. A: 2 B: 0 *

• fixed

1 Like

I need to create a macro so I don’t make so many mistakes in the morning

Anyone wanna help create an Excel tool for this

28579 (ninja edited, disregard what it used to say)

1 (Celalta) 13579. A: 3 B: 0
2 (soyleche) 23571. A: 3 B: 0
3 (Celalta) 43576. A: 2 B: 0
4 (Celalta) 28579. A: 3 B: 1

Do the rules prohibit “talking it out”? In our 20 questions game, we’ve got our unofficial side conversation. Allowed/not allowed?

sure, discussion encouraged.

I created an Excel spreadsheet to help. I will make no more mistakes!