codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.09k stars 220 forks source link

Submit challange via api #1628

Open kenkit opened 5 years ago

kenkit commented 5 years ago

I've looked around but I find nothing on how to submit a challenge through the api. I was thinking of making a game through codewars where users would be able to complete and submit challenges using my app.

┆Issue is synchronized with this Clickup by Unito

Voileexperiments commented 5 years ago

Technically speaking you only need to be able to run code somewhere to "submit challenge" of any kind. CW just wraps the code snippets (preloaded, solution, test fixture) along with a pre-configured test environment, which you can easily grab from the runner repo.

If you want a way to pretend you're submitting to CW runner, there are ways, and it's not that difficult. There used to be API for getting and submitting challenges, but they're gone since a long time ago so there will be some detour.