Skip to content

crxdelv/my-ttpd-song

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

status: running

📖 Under the hood

To calculate which song, I used this implementation:

function seed(raw) {
  let res = 0;
  raw.toUpperCase().trim().split("").forEach(char => {
    res += Math.round(char.charCodeAt(0) / 5);
    if(res > 30) res -= 31;
  });
  if(res > 30) res -= 31;
  return res;
}

This function iterates the given name by character and increment the variable res by the rounded value of its character code divided by 5.

Whenever the variable res exceeds the total tracks, it decreases by 31.

🧪 Bulk name testing

For instant name testing, go to /bulk-test.

This includes the name informations, process, and the output.

🍂 What's new? v5

Stages of Grief

There are currently 4 stages available. The fifth one is probably the reputation (Taylor's Version).

  • Stage 1: Denial – Standard
  • Stage 2: Bargaining – The Albatross
  • Stage 3: Anger – Anthology
  • Stage 4: Depression – The Bolter

Positions

There are currently 17 positions available. It is determined by the formula seed % positions.length. Respectively arranged as:

  1. Chairman
  2. President
  3. Vice President
  4. Secretary
  5. Poet
  6. Artist
  7. Mastermind
  8. Speaker
  9. Prophecy
  10. Albatross
  11. Alchemist
  12. Doctor
  13. Wise Man
  14. Good Samaritan
  15. Fearless Leader
  16. Real Tough Kid
  17. Good Neighbor

⚖️ Disclaimer

my-ttpd-song hosts the image files with full attribution to their owners. All rights to the images are reserved.

About

The Tortured Poets Department: The Anthology

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published