Scan with your iPhone to install
Pick a number game
What's New
Version 1.0
First release
What it does
22 actions-
Choose from Menu
-
Choose from Menueasy
-
Random Number
-
Ask for Input1-10
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
-
Choose from Menumedium
-
Random Number
-
Ask for Input1-20
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
-
Choose from Menuhard
-
Random Number
-
Ask for Input1-50
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color darkorange
menu nil {
item "easy":
randomNumber(1, 10)
const AskForInput = prompt("1-10", "Number")
if AskForInput == {
showNotification("Correct", AskForInput)
} else {
showNotification("Wrong", AskForInput)
}
item "medium":
randomNumber(1, 20)
const AskForInput1 = prompt("1-20", "Number")
if AskForInput1 == {
showNotification("Correct", AskForInput1)
} else {
showNotification("Wrong ", AskForInput1)
}
item "hard":
randomNumber(1, 50)
const AskForInput2 = prompt("1-50", "Number")
if AskForInput2 == {
showNotification("Correct", AskForInput2)
} else {
showNotification("Wrong ", AskForInput2)
}
}
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
Advertisement