Escaneie com o iPhone para instalar
Duuud
Novidades
Versão 1.0
First release
O que ele faz
15 ações-
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
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#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)
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de coltensus
Você também pode gostar
Publicidade