Escaneie com o iPhone para instalar
Play The Game, it’s fun.
Novidades
Versão 1.0
First release
O que ele faz
29 ações-
CommentThis shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=309eee8f-5512-4fe5-82e1-e70551a242d7
-
Number
-
Set VariableuserScore
-
Number
-
Set VariableshortcutScore
-
Random Number
-
Ask for InputGuess the shortcut's number (1-10):
-
Text
-
Text
-
Text
-
If
-
Calculate
-
Set VariableuserScore
-
Show Result
-
If
-
Show Result
-
Ask for InputChoose a number for the shortcut to guess (1-10):
-
Random Number
-
Text
-
Text
-
Text
-
If
-
Calculate
-
Set VariableshortcutScore
-
Show Result
-
If
-
Show Result
-
Text
-
Show Result
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 magicWandAlt
// This shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=309eee8f-5512-4fe5-82e1-e70551a242d7
@userScore = 0
@shortcutScore = 0
const ShortcutNumber = randomNumber(1, 10)
const UserGuess = prompt("Guess the shortcut's number (1-10):", "Number", false)
const Text_userGuess = "{}"
const Text_shortcutNumber = "{ShortcutNumber}"
if Text_userGuess == Text_shortcutNumber {
@userScore = @userScore + 15
show("Correct! You get 15 points.")
} else {
show("Wrong! You get 0 points.")
}
const UserNumber = prompt("Choose a number for the shortcut to guess (1-10):", "Number", false)
const ShortcutGuess = randomNumber(1, 10)
const Text_shortcutGuess = "{ShortcutGuess}"
const Text_userNumber = "{}"
if Text_shortcutGuess == Text_userNumber {
@shortcutScore = @shortcutScore + 15
show("Shortcut guessed your number! Shortcut gets 15 points.")
} else {
show("Shortcut guessed wrong! Shortcut gets 0 points remain 0.")
}
const FinalText = "Final Scores:\nYou: {@userScore}\nShortcut: {@shortcutScore}"
show(FinalText)
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 boomchickaboomboom
Você também pode gostar
Publicidade