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.
For instant name testing, go to /bulk-test.
This includes the name informations, process, and the output.
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
There are currently 17 positions available. It is determined by the formula seed % positions.length
. Respectively arranged as:
- Chairman
- President
- Vice President
- Secretary
- Poet
- Artist
- Mastermind
- Speaker
- Prophecy
- Albatross
- Alchemist
- Doctor
- Wise Man
- Good Samaritan
- Fearless Leader
- Real Tough Kid
- Good Neighbor
my-ttpd-song hosts the image files with full attribution to their owners. All rights to the images are reserved.