ricardoboss / Prolangle

A game about programming languages.
https://prolangle.ricardoboss.de
MIT License
2 stars 1 forks source link

Snippets: file name and attribution #97

Open chucker opened 5 months ago

chucker commented 5 months ago

Snippets now have file names, but they don't yet have attribution. Also, the file names aren't actually picked up in the UI.

If we use third-party snippets that aren't public domain (for example, for sample code, it oftentimes doesn't matter), I think we should extend ICodeSnippet (perhaps add an IThirdPartyCodeSnippet that inherits from it) where we can properly attribute the code.

Once a snippet has been solved, it should then show both the file name and, if applicable, the attribution.