Pré-visualização
Shortcut Challenges
Demo:
Challenge Add 1+1 (screenshot) Solution (screenshot)
How It Works
Pick a challenge from the list of challenges. Press View Details to get information about the challenge, then choose Get Initial Code to get a blank shortcut, ready to put actions in.
Code your solution.
Test your solution by running Shortcut Challenges and choosing Run Tests. Failed tests are shown in red, passed tests are shown in green. Once all tests pass, you have beaten the challenge.
Shortcut Golf Rules
Your goal is to beat the challenge in as few actions as possible. There are some limitations on what actions you can use to make sure you actually code a solution.
- Do not use actions that leave the shortcuts app, get user input, load online resources, or are 3rd party.
- Your solution should work with any valid input, even if it isn’t a test case. Do not just hardcode input/output pairs.
More Info
View Details: See information about the challenge including the goal of the challenge and how to beat it. Select Get Initial Code to get a blank shortcut ready to start the challenge in, or press cancel to exit. View Tests: View a specific test case. Run Tests: Run your shortcut against the test case to see if it passes. Failures will be shown in a dialog with more information. Successes are shown in a notification with more information if you tap them. Back To Menu Go back to the challenge list.
Custom Challenges
Custom challenges are not yet supported.
Submit challenges here to add them to the main list: https://github.com/pfgithub/shortcut-challenges or send them to me on routinehub/reddit/discord.
This shortcut supports Check For Updates
Run Check For Updates at any time to check for updates to this and other shortcuts.
Novidades
First release
O que ele faz
201 ações-
CommentCreated by @pfg#4856 https://routinehub.co/user/pfg /u/pfg___
-
Set VariableInput
-
Dictionary
-
Get File
-
Set Dictionary Value
-
Save File
-
Text
-
Set Variable\n
-
Get Variable
-
If
-
Get IP Address
-
If
-
Text
-
If
-
Text
-
If
-
Show NotificationThere is no internet, the challenge list will not be downloaded.
-
Get File
-
If
-
Show NotificationDownloading Challenge List
-
URLraw.githubusercontent.com/pfgithub/shortcut-challenges/master/challenges.json
-
Get Contents of URL
-
Show NotificationDone
-
Get Dictionary from Input
-
Save File
-
Get Variable
-
Stop This Shortcut
-
If
-
Create Folder
-
Create Folder
-
Get File
-
Get Dictionary from Input
-
Set VariableChallenges
-
Text
-
Set VariableThis Shortcut
-
Get File
-
Text
-
Count
-
If
-
Get Variable
-
Get Dictionary Value
-
Get Dictionary from Input
-
Set VariableCurrent Challenge
-
If
-
Get Variable
-
If
-
List
-
Choose from List
-
If
-
Text
-
Make Rich Text from Markdown
-
Make HTML from Rich Text
-
Text
-
Make Rich Text from HTML
-
Show Web Page
-
List
-
Choose from List
-
If
-
Get Variable
-
If
-
Base64 Encode
-
Set Name
-
Save File
-
Open File
-
Stop This Shortcut
-
If
-
Choose from MenuThis shortcut has no example code
-
Choose from MenuCopy shortcut name
-
Text
-
Copy to Clipboard
-
Show Result
-
Stop This Shortcut
-
Choose from MenuDon't
-
Nothing
-
If
-
Nothing
-
If
-
If
-
Text
-
Save File
-
Nothing
-
If
-
If
-
Get Variable
-
Repeat with Each
-
Get Variable
-
Choose from List
-
Get Variable
-
Get Item from List
-
Get Dictionary from Input
-
Quick Look
-
Nothing
-
If
-
If
-
Text
-
Set VariableChallenge Name
-
Get My Shortcuts
-
If
-
Get Variable
-
Repeat with Each
-
Get Variable
-
Get Text from Input
-
Combine Text
-
Set VariableExpected Output
-
Get Variable
-
Run Shortcut
-
Get Text from Input
-
Combine Text
-
Set VariableActual Output
-
Text
-
Set VariableTest Result Description
-
Text
-
Set VariableSuccess
-
Get Variable
-
If
-
Text
-
Set VariableSuccess
-
Text
-
If
-
Text
-
Text
-
Make Rich Text from Markdown
-
Make HTML from Rich Text
-
Text
-
Set Variabletemp
-
Combine Text
-
Text
-
Make Rich Text from HTML
-
Show Web Page
-
If
-
Show Result
-
Nothing
-
If
-
Nothing
-
Run Shortcut
-
Stop This Shortcut
-
If
-
Get File
-
Get Dictionary from Input
-
Set VariableChallenges
-
Get File
-
If
-
Get Dictionary from Input
-
Set VariableChallenges
-
Text
-
Run Shortcut
-
If
-
Text
-
Run Shortcut
-
If
-
Show Alert
-
Stop This Shortcut
-
If
-
Get File
-
Set VariableChallenges
-
Text
-
Set Name
-
Set Variabletemp2
-
Get Variable
-
Set Variabletemp
-
Get My Shortcuts
-
Filter Files
-
Set VariableMy Shortcuts
-
Get Variable
-
Repeat with Each
-
Get Variable
-
Get Dictionary Value
-
Get Dictionary from Input
-
Set VariableCurrent Challenge
-
Get Variable
-
If
-
Filter Files
-
If
-
Text
-
Set Name
-
Set Variabletemp2
-
Get Variable
-
Add to Variable
-
Get Variable
-
Choose from List
-
Get Name
-
If
-
Text
-
Set VariableArchive Name
-
Choose from MenuCreate backup in /Shortcuts/Challenges/….zip ?
-
Choose from MenuCreate Backup
-
Get My Shortcuts
-
Filter Files
-
Make Archive
-
Set Name
-
Save File
-
Show Alert
-
Nothing
-
Run Shortcut
-
Stop This Shortcut
-
If
-
Replace Text
-
Save File
-
Nothing
-
Run Shortcut
Avaliações e comentários
Escrever uma avaliaçãoAinda não há avaliações. Seja o primeiro a compartilhar o que você pensa!