Duuud
What's New
Version 1.0
First release
What it does
15 actions-
Random Number
-
Text
-
Number
-
Text
-
If
-
Show NotificationOnly use numbers between 0 to 10!
-
Wait
-
Stop and Output
-
If
-
If
-
Show NotificationCorrect! the number was …!
-
If
-
Show NotificationWrong! the answer was …!
-
Wait
-
Run ShortcutGuess The Number
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define glyph gameController
const RandomNumber = randomNumber(0, 10)
const Text = "{Ask}"
const Number = number(Text)
if Number > 10 {
showNotification("Only use numbers between 0 to 10!", "Answer", Text)
wait(7)
output(Number)
} else {
}
if Text == RandomNumber {
showNotification("Correct! the number was {RandomNumber}!", "Answer", RandomNumber)
} else {
showNotification("Wrong! the answer was {}!", "Answer", Text)
}
wait(7)
runSelf(IfResult)
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 coltensus
You Might Also Like
Advertisement