Escaneie com o iPhone para instalar
Rock Paper Scissors!
Novidades
Versão 1.0
First release
O que ele faz
41 ações-
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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de theshortcutguy2
Você também pode gostar
Publicidade