Skip to content

Instantly share code, notes, and snippets.

@shakilkhan496
Forked from codepo8/developerdna.md
Created November 9, 2023 09:11
Show Gist options
  • Save shakilkhan496/8c6e3b8d6b2e07ac978b2409dd501acd to your computer and use it in GitHub Desktop.
Save shakilkhan496/8c6e3b8d6b2e07ac978b2409dd501acd to your computer and use it in GitHub Desktop.
Developer DNA CODE100 Puzzle

Puzzle: Developer DNA

Welcome to another CODE100 puzzle. The challenge is to take this JSON dataset:

{
    "cols": 30,
    "sine": [
     "-0.93", "-0.60", "-0.33", "-0.13", "0.00",
     "0.00", "-0.13", "-0.33", "-0.60", "-0.93"
    ],
    "parts": ["πŸ’»", "πŸ’–"]
}

And turn into this construct:

             πŸ’» πŸ’–              
           πŸ’»      πŸ’–           
         πŸ’»          πŸ’–         
       πŸ’»             πŸ’–        
      πŸ’»               πŸ’–       
      πŸ’»               πŸ’–       
       πŸ’»             πŸ’–        
         πŸ’»          πŸ’–         
           πŸ’»      πŸ’–           
             πŸ’» πŸ’–              
           πŸ’–      πŸ’»           
         πŸ’–          πŸ’»         
       πŸ’–             πŸ’»        
      πŸ’–               πŸ’»       
      πŸ’–               πŸ’»       
       πŸ’–             πŸ’»        
         πŸ’–          πŸ’»         
           πŸ’–      πŸ’»           
             πŸ’– πŸ’»  

Some hints:

  • The cols property is the overall amount of chars on each line and the DNA sequence should be centered in it.
  • At its peak, this wave has 15 characters between the different emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment