Escaneie com o iPhone para instalar
It’s what it says
Novidades
Versão 1.0
First release
O que ele faz
32 ações-
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
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 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 {
}
}
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
Você também pode gostar
Publicidade