Shortcut Challenges

Fun • Updated 5 years ago

Download Shortcut Add to Collection
Version 1.0 • 52720 unique downloads

ShareShortcuts Member:

@pfg



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

link.

Run Check For Updates at any time to check for updates to this and other shortcuts.



Screenshots

Changelog

v1.0
  • Version 1.0   Current
    5 years ago (Changes)

Extensions:

Siri is supported

Widget is supported

Show 1 embedded comment(s) in this Shortcut