ShareShortcuts

Number Guessing Game

Play The Game, it’s fun

boomchickaboomboom
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 boomchickaboomboom 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
5K
Saved
0
Actions
29
Category
API
Version
1.0
Language
EN

Play The Game, it’s fun.

What's New

Version 1.0

First release

Version History
1.0 May 18, 2026

First release

What it does

29 actions
  1. Comment
    This shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=309eee8f-5512-4fe5-82e1-e70551a242d7
  2. Number
  3. Set Variable
    userScore
  4. Number
  5. Set Variable
    shortcutScore
  6. Random Number
  7. Ask for Input
    Guess the shortcut's number (1-10):
  8. Text
  9. Text
  10. Text
  11. If
  12. Calculate
  13. Set Variable
    userScore
  14. Show Result
  15. If
  16. Show Result
  17. Ask for Input
    Choose a number for the shortcut to guess (1-10):
  18. Random Number
  19. Text
  20. Text
  21. Text
  22. If
  23. Calculate
  24. Set Variable
    shortcutScore
  25. Show Result
  26. If
  27. Show Result
  28. Text
  29. Show Result

View as code
Beta

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

#define glyph magicWandAlt

// This shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=309eee8f-5512-4fe5-82e1-e70551a242d7

@userScore = 0
@shortcutScore = 0
const ShortcutNumber = randomNumber(1, 10)
const UserGuess = prompt("Guess the shortcut's number (1-10):", "Number", false)
const Text_userGuess = "{}"
const Text_shortcutNumber = "{ShortcutNumber}"

if Text_userGuess == Text_shortcutNumber {
	@userScore = @userScore + 15
	show("Correct! You get 15 points.")
} else {
	show("Wrong! You get 0 points.")
}
const UserNumber = prompt("Choose a number for the shortcut to guess (1-10):", "Number", false)
const ShortcutGuess = randomNumber(1, 10)
const Text_shortcutGuess = "{ShortcutGuess}"
const Text_userNumber = "{}"

if Text_shortcutGuess == Text_userNumber {
	@shortcutScore = @shortcutScore + 15
	show("Shortcut guessed your number! Shortcut gets 15 points.")
} else {
	show("Shortcut guessed wrong! Shortcut gets 0 points remain 0.")
}
const FinalText = "Final Scores:\nYou: {@userScore}\nShortcut: {@shortcutScore}"
show(FinalText)
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 boomchickaboomboom

See All

You Might Also Like

See All
Advertisement