Отсканируй на iPhone, чтобы установить
Color match game
Что нового
Версия 3.1
Turned it into a game
Что делает
Действий: 16-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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! ❌")
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от vdiya
Вам также может понравиться
Реклама