Know you relationship – FLAMES at your service !!

Well, it is the 14th of February and the whole world is delving in the mood of love. Those who have someone to spend it are planning to spend quality time with them and others like me are planning to do the same when this day arrives with a new year tag !!

Meanwhile, those of us who are ” happily single” and ” ready to mingle” types, we have some time to spend with ourselves and so comes this post.

I had developed an algorithm based on the “FLAMES” method of relationship calculation during my school and thought it is high time to revive it. Those of you not initiated with this method, it is a play game for children which catches similarity in similar characters in two names and follows a set algorithm to predict relationship of the two individuals.

So folks, presenting to you all, my very own version of the Relationship Calculator. Go ahead and enter in those names, have fun and post the results, if not names, in comments !!

function flames(nam1,nam2)
{if(nam1.search(” “)==-1&&nam2.search(” “)==-1&&nam1.length>0&&nam2.length>0)
{nam3=nam2;
w=0;
l1=nam1.length;
l2=nam2.length;
name1=new Array(l1);
name2=new Array(l2);
for(ii1=0;ii1<l1;ii1++)
{name1[ii1]=nam1.substring(ii1,ii1+1);
}

for(ii2=0;ii2<l2;ii2++)
{name2[ii2]=nam2.substring(ii2,ii2+1);
}

v=l1+l2;

for(i1=0;i1<l1;i1++)
{
g=l2;

s1=name1[i1];
i2=0;
j=0;
ch11=nam2.search(s1);

if(ch11!=-1)
{w=w+1;
while(j==0)
{s2=name2[i2];
if(s1==s2 && s1!=" ")
{d=new Array (l2-1);
for(a=0;a<i2;a++)
{d[a]=name2[a];
}
for(b=i2+1;b<l2;b++)
{d[b-1]=name2[b];
}
name2=d;
nam2=d.join("");

l2=l2-1;
j=j+2;
}
i2=i2+1;
}
}
}
as=2*w;
x=v-as;
n=x;
f1="FLAMES";
len=f1.length;
f=new Array(len);
for(iz1=0;iz11;i–)
{
ia=i;
a1=n%ia;

if(a1==0)
{
len=f.length;
mn=new Array(len-1);

for(km=0;km<(len-1);km++)
{mn[km]=f[km];}
f=mn;
}else
{d=a1-1;
len=f.length;
mn=new Array(len-1);
for(s2=0;s2<(len-a1);s2++)
{mn[s2]=f[s2+a1];}

for(s1=s2;s1<(len-1);s1++)
{mn[s1]=f[s1-s2];}
f=mn;
}

}
alert(nam1+" and "+nam3+"\n"+"Result : "+f[0]+"\n"+"Check APPENDIX");
alert("click reset to try again"); }
else
{alert("You have entered spaces in name,probably between name and surname \n which is not acceptable.\nOr may be you have not entered one of the name itself.\nKindly return back and try after removing spaces");}
return(1);

}

Please enter the names without space in lower letters…

Name 1 

Name 2 

                                 

If you want to try again….go ahead and       



What do the results mean ?





Character Code      Expansion
F

Friends

L

Lovers

A

Adore

M

Probables for marriage

E

No less than enemy

S

Bro-Sis/Sis-Bro

Note : The Results above are indicatory in nature at best.
Evaluation is based on famous FLAMES method and is purely intended for entertainment purposes. Any similarity of results to actual situations is purely coincidential and unintended. Any logical irregularities to be reported in the comments section.

6 thoughts on “Know you relationship – FLAMES at your service !!

  1. Dude – this really works , awesome :)But I have a suggestion can you do some more algorithm building and create something like below:1) Guy enter his name2) Selects the type pf relationship he is looking forThe system gives him a list of names to focus his search 🙂

Leave a comment