Scanne avec ton iPhone pour installer
It’s what it says
Nouveautés
Version 1.0
First release
Ce qu’il fait
32 actions-
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
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 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 {
}
}
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é