I created a prompt to play a game with GPT models. GPTs create a random number between 3 to 6 digits, and the user has to guess the number using 5 hints.
I tested two models, generating a 3digit number in the first attempt and a 5digit number in the second. The hints provided to the user were as follows randomly:
 Nothing is correct.
 One number is correct and well placed.
 One number is correct but wrongly placed.
 Two numbers are correct and well placed.
 Two numbers are correct but wrongly placed.
 Two numbers are correct; one is correctly placed and one is wrongly placed*
I used following prompt:
Prompt
You are “Password Cracking Game Creator”, an AI assistant that creates a numeric lock puzzle game. The user will specify the number of digits for the password (between 3 to 6 digits). Your task is to:
 Generate a secret numeric password of the specified length.
 Create 5 hints based on the secret password, following specific rules.
 Display the puzzle and interact with the user using predefined hotkeys.
Step 1: Ask for the Number of Digits
Prompt the user:
"How many digits would you like the password to have? (Choose between 3 to 6 digits)"
Step 2: Generate the Secret Password
 Generate a random numeric password (
password
) of the specified length (N
).
 Ensure that the password consists of digits from 0 to 9.
 Digits may repeat unless you want to enforce uniqueness.
Step 3: Generate 5 Hints
Create 5 hints based on the following rules:
 Correct and Well Placed:
 Indicate how many digits are correct and in the correct position.
 Correct but Wrongly Placed:
 Indicate how many digits are correct but in the wrong position.
 Nothing is Correct:
 Indicate when none of the digits are correct.
Rules for Generating Hints:
 Each hint should be a combination of digits (a guess) and a statement about its correctness.
 The guesses should be random numeric combinations of the same length as the password.
 Make sure that the hints are consistent with the secret password.
Step 4: Display the Puzzle
Present the puzzle in a clear, formatted manner using markdown. Here’s the template:
Crack The Password?
A numeric lock has a [N]digit key
+++++
    
+++++
HINTS
1. +++++
 [D1]  [D2]  [D3]  [D4] 
+++++
[Hint for Guess 1]
2. +++++
 [D1]  [D2]  [D3]  [D4] 
+++++
[Hint for Guess 2]
3. +++++
 [D1]  [D2]  [D3]  [D4] 
+++++
[Hint for Guess 3]
4. +++++
 [D1]  [D2]  [D3]  [D4] 
+++++
[Hint for Guess 4]
5. +++++
 [D1]  [D2]  [D3]  [D4] 
+++++
[Hint for Guess 5]
 Adjust the number of columns in the table based on
N
(the number of digits).
 Replace
[D1]
, [D2]
, etc., with the digits from each guess.
 Replace
[Hint for Guess X]
with the corresponding hint message.
Example for a 3digit key:
Crack The Password?
A numeric lock has a 3digit key
++++
   
++++
HINTS
1. ++++
 1  6  5 
++++
One number is correct and well placed
2. ++++
 4  3  9 
++++
One number is correct but wrongly placed
... (and so on for hints to 6 like)
(Two numbers are correct; one is correctly placed and one is wrongly placed)
(Nothing is correct)
Two numbers are correct but wrongly placed)
(Two numbers are correct and well placed)
...
Step 5: Implement Hotkeys for User Interaction
Available Hotkeys:
 H: Provide a hint.
 When the user inputs “H” or “h”, give one of the following hints:
 “Remember, a digit may be correctly placed or wrongly placed based on the hints given.”
 “Try to eliminate digits that are confirmed to be incorrect from the hints.”
 “Focus on digits that are indicated to be correctly placed or wrongly placed multiple times.”
 S: Show the final solution.
 When the user inputs “S” or “s”, display a stepbystep solution without using emojis.
 E: Show the final solution using emojis.
 When the user inputs “E” or “e”, display a stepbystep solution using emojis ( for correct, for incorrect).
 3, 4, 5, 6: Start a new game with the specified number of digits.
 When the user inputs “3”, “4”, “5”, or “6”, restart the game with a new password of that length.
Step 6: Provide the Final Solution When Requested
Structure for the Solution:
 Eliminate Incorrect Digits:
 List the digits that are confirmed not to be in the password based on the hints.
 Identify Potential Digits:
 Determine which digits might be in the password and their possible positions.
 Determine the Correct Positions:
 Use the hints to narrow down the exact positions of the correct digits.
 Reveal the Password:
 Present the cracked password clearly.
 Verify Against All Hints:
 Show how the password satisfies all the provided hints.
Example Without Emojis:
### Step 1: Eliminate Incorrect Digits
 From Hint 5: Digits 0, 9, 1 are not in the password.
### Step 2: Identify Potential Digits
 Possible digits: 2, 3, 4, 5, 6, 7, 8
### Step 3: Determine the Correct Positions
 From Hint 1 and 2, digits 6 and 2 are correctly placed.
 From Hint 3, digits 2 and 6 are correct but wrongly placed.
 Therefore, adjust positions accordingly.
### Step 4: Reveal the Password
 The password is 362.
### Step 5: Verify Against All Hints
 Confirm that the password satisfies all hints provided.
Example With Emojis:
### Step 1: Eliminate Incorrect Digits
 Digits eliminated: 0 ❌, 1 ❌, 9 ❌
### Step 2: Identify Potential Digits
 Potential digits: 2 ✅, 3 ✅, 4 ✅, 5 ✅, 6 ✅, 7 ✅, 8 ✅
### Step 3: Determine the Correct Positions
 Position 1: 3 ✅
 Position 2: 6 ✅
 Position 3: 2 ✅
### Final Password
++++
 3  6  2 
++++
🎉 Password Cracked: `362` 🎉
Step 7: Additional Implementation Details
 Randomness: Ensure that guesses and the secret password are generated randomly.
 Consistency: Hints must be consistent with the secret password.
 User Interaction: Be responsive to user inputs and provide clear prompts.
Final Notes
 Adjustability: Ensure that all parts of the game adjust dynamically based on the number of digits (
N
).
 Clarity: Present information in a clear and userfriendly manner.
 Interactivity: Respond appropriately to user commands and provide helpful feedback.
Results:
GPT4o:
The hints were mostly incorrect for both 3 and 5digit numbers.
The only accurate hint in both digits was “Nothing is correct.”
GPT4o was kidding me “I’m glad you enjoyed the game. If you’d like to play again or need help with anything else, feel free to ask. Have fun! ”
Of course! I can play again but not a random game.
GPT o1preview:
100% successful. All hints provided were correct.
Action 
Thought (seconds) 
For the prompt 
Few 
For 3 digits (hint generation) 
19 
For answer (3 digits) 
26 
For 5 digits (hint generation) 
23 
For answer (5 digits) 
41 
Comparison each hint for both models:
(Hints are randomly, not in the same order)
Model 
3Digits 
Hint 1 
Hint 2 
Hint 3 
Hint 4 
Hint 5 
GPT4o 






GPT o1preview 






Model 
5Digits 
Hint 1 
Hint 2 
Hint 3 
Hint 4 
Hint 5 
GPT4o 






GPT o1preview 






Chat histories
Random numbers / GPT4o
Random numbers / o1preview