Scanne avec ton iPhone pour installer
I made this simple shortcut because it’s cool and I’m a beginner
Nouveautés
Version 1.0
First release
Ce qu’il fait
17 actions-
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
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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 {}$!")
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Ça pourrait aussi te plaire
Publicité