Flames!


Flames is a popular game or technique used to calculate the chemistry between two persons.

It is done as follows,

1. The total number of distinct characters are counted from both names.

2. Then “FLAMES” is written on a paper and starting from F, we need to move through the word, a certain number of charachters, equal to the number of dictinct charachters. If the number exceeds the total lenght, then we resume from F again.

3. At the end of each movement, the character at which we end is stroked out.

4. This is repeated until only one charachter remains.

5. Depending upon the last character, the decision is made.

  • F – Friends
  • L – Loosers
  • A – Affectionate
  • M – Morons
  • E – Enemies
  • S – Siblings

One of my friends in college taught me this and asked me to help him do a program for this. So we finally ended up with the below program. There is nothing difficult in this. There are basically two sections. One section finds out the number of distinct characters and the other traverses through the string to find the decisive character. A string object is used for easy insertion and deletion of characters.

You can find the C++ code here:

http://stevescodes.pastebin.com/Cs32G1An

I had made a GUI front end using C#. You can download the executable along with a dll from this link.

http://www.mediafire.com/?ijx32gjw4hjili9

If you are interested in the C# source code, please leave your request in the comments section. Ill provide it.  Feel free to post your comments and questions!

– Steve Robinson

One thought on “Flames!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s