ShareShortcuts

Number Guessing Game

In this game, you choose the difficulty after you’ve done that you guess the number

ming
Fork “Number Guessing Game”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so ming gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
1K
Saved
1
Actions
20
Category
API
Version
1.0
Language
EN

In this game, you choose the difficulty after you’ve done that you guess the number

What's New

Version 1.0

First release

Version History
1.0 Oct 10, 2026

First release

What it does

20 actions
  1. Choose from Menu
    Choose your difficulty
  2. Choose from Menu
    Baby (1-5)
  3. Number
  4. Choose from Menu
    Easy (1-10)
  5. Number
  6. Choose from Menu
    Medium (1-50)
  7. Number
  8. Choose from Menu
    Hard (1-100)
  9. Number
  10. Choose from Menu
    Extreme (1-1000)
  11. Number
  12. Choose from Menu
    Custom
  13. Ask for Input
    Enter the maximum number
  14. Random Number
  15. Round Number
  16. Ask for Input
    Guess a number between 0 and …
  17. If
  18. Show Alert
    You Win!
  19. If
  20. Show Alert
    Game Over

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/math'
#define color orange
#define glyph gameController


const MenuResult = menu "Choose your difficulty" {
item "Baby (1-5)":
item "Easy (1-10)":
item "Medium (1-50)":
item "Hard (1-100)":
item "Extreme (1-1000)":
item "Custom":
	prompt("Enter the maximum number", "Number")
}
const RandomNumber = randomNumber(0, MenuResult)
const RoundedNumber = round(RandomNumber)
const ProvidedInput = prompt("Guess a number between 0 and {MenuResult}", "Number")

if ProvidedInput == RoundedNumber {
	alert("You guessed the correct number!", "You Win!")
} else {
	alert("The number was {RoundedNumber}. Try again!", "Game Over")
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by ming

See All

You Might Also Like

See All
Advertisement