Scan with your iPhone to install
It’s what it says
What's New
Version 1.0
First release
What it does
32 actions-
Choose from MenuPick
-
Choose from Menurock
-
Random Number
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
Choose from Menupaper
-
Random Number
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
Choose from Menuscissors
-
Random Number
-
If
-
Show Alert
-
If
-
Show Alert
-
If
-
Show Alert
-
If
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 lightblue
#define glyph gameController
menu "Pick " {
item "rock ":
const RandomNumber = randomNumber(1, 3)
if RandomNumber == 3 {
confirm("I win")
} else {
if RandomNumber == 2 {
confirm("You win")
} else {
if RandomNumber == 1 {
confirm("Tie")
} else {
}
}
}
item "paper":
const RandomNumber1 = randomNumber(1, 3)
if RandomNumber1 == 3 {
confirm("You win")
} else {
}
if RandomNumber1 == 2 {
confirm("Tie")
} else {
}
if RandomNumber1 == 1 {
confirm("I win")
} else {
}
item "scissors ":
const RandomNumber2 = randomNumber(1, 3)
if RandomNumber2 == 3 {
confirm("Tie")
} else {
confirm("You win")
}
if RandomNumber2 == 2 {
confirm("I win ")
} else {
}
}
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