Escaneie com o iPhone para instalar
I made this simple shortcut because it’s cool and I’m a beginner
Novidades
Versão 1.0
First release
O que ele faz
17 ações-
Show Alert
-
Show Alert
-
Ask for InputPlace your bet!
-
Calculate
-
Ask for InputSelect a number in between 0-30
-
If
-
Stop This Shortcut
-
If
-
Show NotificationSelecting Random number...
-
Wait
-
Random Number
-
If
-
Show Alert
-
Stop This Shortcut
-
If
-
Show Alert
-
Show Alert
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 red
#define glyph dollarSign
confirm("Welcome to roulette!")
confirm("In this game you must bet any money on a number between 0-30, if it lands on your number your money you betted doubles.")
const ProvidedInput = prompt("Place your bet!", "Number")
const ProvidedInput1 = prompt("Select a number in between 0-30", "Number")
if ProvidedInput1 > 30 {
stop()
} else {
}
showNotification("Selecting Random number...")
wait(3)
const RandomNumber = randomNumber(0, 30)
if RandomNumber != ProvidedInput1 {
confirm("You lose!")
stop()
} else {
confirm("You win!")
}
confirm("You won {}$!")
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