Skip to content

Instantly share code, notes, and snippets.

@Vusys

Vusys/bccc50.md Secret

Created November 23, 2020 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vusys/fb97175c3bcf15ef406d92cb54dc3fe8 to your computer and use it in GitHub Desktop.
Save Vusys/fb97175c3bcf15ef406d92cb54dc3fe8 to your computer and use it in GitHub Desktop.

Bad Code Coding Challenge #50 - Shades of Grey

Write a solution that outputs a procedurally generated steamy romance novel. Your solution should by able to accept parameters that influence the output, e.g by specifying character names, locations, etc

Examples

fifty(
    {
      "protagonist": [
        "Ana",
        "Ana's Subconscious",
        "Ana's Inner Goddess"
      ],
      "deuteragonist": "Christian",
      "helicopter": {
        "name": "Charlie Tango",
        "type": "Eurocopter EC135",
        "safest_in_her_class": true
      }
    }
) 

//It was a dark and stormy night...

Last Challenge's Winner

Congrats to /u/xxxxx for their solution.

Guidelines

Your solution should try to:

  • Avoid best practises
  • Potentially have woeful performance issues
  • It can look like the code you wrote when you were just starting out programming or it could be extremely "clever" code.
  • Be equal parts hilarious and cringe-worthy
  • If the code is too long for a comment (over approx. 125 lines), please upload it to a pastebin instead of submitting it as a comment.

The solution should work, although if it has the occasional bug, crash, or other oddies, that's fine. As long as it mostly works.

Meta

  • The challenge closes on 6th December 2020 at 23:59:59 UTC.
  • For any meta discussion, there's a stickied comment on this thread.
  • Previous Challenges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment