# Need some help building this bot, Could someone help?

Generate a 4-digit random number sequence ie. 0000 to 9999

– Explain the rules of the game to the user
– The user has 10 tries in guessing the number
– For each guess, provide the response as follows:
• User’s guess, 1N for correct number in wrong position, 1P for each correct number in correct position
– If the user guesses the correct number within 10 tries, display “You’ve won! The number was xxxx.”
– If the user is unable to guess the correct number within 10 tries, display “Game Over! The number was xxxx.”

Outputs:
Illustration:
• [Random Number = 4377]
• Guess 1: 7156 > Display: [Your guess was 7156. Result: 1N, 0P Tries Left: 9]
• Guess 2: 7777 > Display: [Your guess was 7777. Result: 0N, 2P Tries Left: 8]
• Guess 3: 3477 > Display: [Your guess was 3477. Result: 2N, 2P Tries Left: 7]
• Guess 4: 4377 > Display: [You’ve won! The number was 4377.]

I have to build this to no avil

@t_sathiyaa Can you check this Workflow :

Guess the Right Number.xaml (26.2 KB)