Scanne avec ton iPhone pour installer
Pick a number game
Nouveautés
Version 1.0
First release
Ce qu’il fait
22 actions-
Choose from Menu
-
Choose from Menueasy
-
Random Number
-
Ask for Input1-10
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
-
Choose from Menumedium
-
Random Number
-
Ask for Input1-20
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
-
Choose from Menuhard
-
Random Number
-
Ask for Input1-50
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
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 darkorange
menu nil {
item "easy":
randomNumber(1, 10)
const AskForInput = prompt("1-10", "Number")
if AskForInput == {
showNotification("Correct", AskForInput)
} else {
showNotification("Wrong", AskForInput)
}
item "medium":
randomNumber(1, 20)
const AskForInput1 = prompt("1-20", "Number")
if AskForInput1 == {
showNotification("Correct", AskForInput1)
} else {
showNotification("Wrong ", AskForInput1)
}
item "hard":
randomNumber(1, 50)
const AskForInput2 = prompt("1-50", "Number")
if AskForInput2 == {
showNotification("Correct", AskForInput2)
} else {
showNotification("Wrong ", AskForInput2)
}
}
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é