Can I use code from third party libraries?

Hello.

Can I use code from third party libraries?
How it should be licensed? Can I use code licensed under GPL for instance?

I did not find anything on that matter neither in rules, nor FAQ.

Thanks.

… if you can figure out how to link the libraries with the use of the services Codin Game provides… I suppose you can.

Though… that likely will require exploiting the website and the admins might get annoyed by it.

Depends of the language. For example in javascript you just have to copy/paste the library code at the start of your code. I remember i used underscorejs for a puzzle. I just copy/pasted the minified version in my code.

1 Like

Well, even in C ; for exemple, SQLite has an amalgamation version of ~40k lines ^^

Dunno if there is not a limit for the code size though :smiley:

1 Like

The limit is 100K chars

1 Like

That won’t be enough for SQLite then :stuck_out_tongue:

Whatever, I guess that if you publish your solution, you have to be careful with the licence of the code you may use.

1 Like

Thanks for your answers, everybody. If I understand correctly, I can use third party code as long as it licensed properly. It seems to me that code licensed under permissive licenses is better suited for this purpose, rather than one under GPL for instance.
Correct me if I’m wrong.

1 Like