daan.ninja/find-your-love
Just a little fun project inspired on a game to Calculate the percentage you love someone.
example
"Jack love Rose"
first count how many times a character is in the 2 names and love
J A C K L O V E R S
1 1 1 1 1 2 1 2 1 1
then count the two ends together
1+1 1+1 1+2 1+1 1+2
1 1 3 2 3
repeat this
1+3 1+2 2
4 3 2
4+2 3
6 3
so now we know jack love ross for 63%
note
written in Js
in the src file you find the php version