Swift package aimed to work jointly with Swift projects to provide a relatively straightforward way to work with numerous Coding Challenge websites.
Some examples of compatible Coding Challenge websites include, but are not limited to:
Check out my Code Challenges Repository for a demonstration on how to use this package to its fullest.
There are a couple of ways in which you could use this package.
Over at my Challenge Starter Template Project, I have prepared a bare-bones Xcode application that can be used to get started quickly. Please do check it out!
If you have an existing Xcode/Swift project that you'd like to add this package to, you can follow these instructions:
This package is built with a relatively simple and encompassing set of observations about Coding Challenges:
Using these very same rules, the following concepts were developed:
There can exist more than one Test Case per Solution, and there can definitely exist more than one Solution per Challenge. All of these concepts are further developed in the Challenge Starter Repo and the Code Challenges Repo. Be sure to check those out!
Reducing Coding Challenges to just these three components, essentially everything needed for solving them can be created using these building blocks! You can check out a working version of this over in my Code Challenges Repo.
NOTE: This package doesn't add a huge variety of utility methods. This is done purposefully, mainly to encourage your own helper methods on your own projects. So, get creative! =D
Contributions are by all means allowed and encouraged here! It is likely that things can be improved for readability, comments explaining how certain parts of the code work, or even to Swift-ify things around. Whatever improvement you see, it will be more than welcome.