Escanea con tu iPhone para instalar
I made this simple shortcut because it’s cool and I’m a beginner
Novedades
Versión 1.0
First release
Qué hace
17 acciones-
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 las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo 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 en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
También te puede gustar
Publicidad