ShareShortcuts

Roulette

I made this simple shortcut because it’s cool and I’m a beginner

guyiyfthz64
Fork “Roulette”

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 guyiyfthz64 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
25K
Saved
2
Actions
17
Category
API
Version
1.0
Language
EN

I made this simple shortcut because it’s cool and I’m a beginner

What's New

Version 1.0

First release

Version History
1.0 Mar 9, 2024

First release

What it does

17 actions
  1. Show Alert
  2. Show Alert
  3. Ask for Input
    Place your bet!
  4. Calculate
  5. Ask for Input
    Select a number in between 0-30
  6. If
  7. Stop This Shortcut
  8. If
  9. Show Notification
    Selecting Random number...
  10. Wait
  11. Random Number
  12. If
  13. Show Alert
  14. Stop This Shortcut
  15. If
  16. Show Alert
  17. Show Alert

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 color red
#define glyph dollarSign

confirm("Welcome to roulette!")
confirm("In this game you must bet any money on a number between 0-30, if it lands on your number your money you betted doubles.")
const ProvidedInput = prompt("Place your bet!", "Number")
const ProvidedInput1 = prompt("Select a number in between 0-30", "Number")

if ProvidedInput1 > 30 {
	stop()
} else {
}
showNotification("Selecting Random number...")
wait(3)
const RandomNumber = randomNumber(0, 30)

if RandomNumber != ProvidedInput1 {
	confirm("You lose!")
	stop()
} else {
	confirm("You win!")
}
confirm("You won {}$!")
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

You Might Also Like

See All
Advertisement