Escanea con tu iPhone para instalar
Rock Paper Scissors!
Novedades
Versión 1.0
First release
Qué hace
41 acciones-
List
-
Get Item from List
-
Ask for InputEnter “Rock” “Paper” or “Scissors”
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
Show Alert
-
If
-
If
-
Choose from MenuPlay Again?
-
Choose from MenuYes
-
Run ShortcutRock Paper Scissors
-
Choose from MenuNo
-
Stop This Shortcut
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 glyph hand
const List = list("Rock ", "Paper", "Scissors")
const ItemFromList = getRandomItem(List)
const ProvidedInput = prompt("Enter “Rock” “Paper” or “Scissors”", "Text")
if ProvidedInput == "Rock" {
if ItemFromList == "Rock " {
confirm("Draw")
} else {
if ItemFromList == "Scissors" {
confirm("You Lose.")
} else {
if ItemFromList == "Paper" {
confirm("You Win!")
} else {
}
}
}
} else {
if ProvidedInput == "Paper" {
if ItemFromList == "Rock" {
confirm("You Win!")
} else {
if ItemFromList == "Paper" {
confirm("Draw.")
} else {
if ItemFromList == "Scissors" {
confirm("You Lose.")
} else {
}
}
}
} else {
if ProvidedInput == "Scissors" {
if ItemFromList == "Scissors" {
confirm("Draw")
} else {
if ItemFromList == "Rock" {
confirm("You Lose.")
} else {
if ItemFromList == "Paper" {
confirm("You Win!")
} else {
}
}
}
} else {
}
}
}
menu "Play Again?" {
item "Yes":
runSelf()
item "No":
stop()
}
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
Más de theshortcutguy2
También te puede gustar
Publicidad