Color match game
What's New
Version 3.1
Turned it into a game
What it does
16 actions-
Text
-
Repeat
-
List
-
Filter Files
-
Combine Text
-
Set Variableranpattern
-
Show Notification…
-
Wait
-
Repeat
-
Choose from List
-
Combine Text
-
Set Variableuserpattern
-
If
-
Show Alert
-
If
-
Show Alert
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 pink
#define glyph brainHead
const Text = "500"
const RepeatResults = repeat _ for Text {
const List = list("🔴", "🟠", "🟡", "🟢", "🔵", "🟣")
const Files = filterFiles(List, 5, "File Extension", "Z to A")
joinText(Files, "Custom")
@ranpattern
showNotification(@ranpattern, "Memorize the pattern! ⬇️", @ranpattern)
wait(7)
repeat _ for 6 {
chooseFromList(List, "Choose the colors in the correct pattern!")
}
joinText(RepeatResults, "Custom")
@userpattern
if @userpattern == @ranpattern {
confirm("You have matched the colors! ✅")
} else {
confirm("You have NOT matched the colors! ❌")
}
}
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 vdiya
You Might Also Like
Advertisement