[Ilugc] Regarding Schemes for the GAME "FLAME"

  • From: citizenofgnu@xxxxxxxxx (Thyagu rajan)
  • Date: Mon Jun 6 13:13:07 2005

Dear   Mr. Anand babu,

Thanks for the time you shared with us at mafoi academy, chennai on
5th of june 2005.
I have a fair knowledge on 'c' language. When i started learning 'c',
as you said 'Tower of Hanoi', where recursion is used, I was not
comfortable with 'c'. While learning in C i had attempted in writing
shaby code for the game Called "FLAME".
For some time now i am opting a selective amenetia to  forget what i
know in 'c'.


Given that two names
A is a String which holds the value "THYAGARAJAN"
B is a string which holds the value "MANOKARAN"

cancelling the characters common in both the strings and counting the
characters then which are left out

 A'=   THY G  JA
 B'=   M NOK  

total characters in both the string is 10

Then taking a string "FLAME" which is a abbrevation of (F)RIEND (L)OVE
(A)FFECTION (M)ARRIAGE (E)NEMETITY and counting the 10th character in
the circular list format
That is, FLAME scoring the 10th in circular list  becomes FLAMEFLAM(E)
 is removed,
Step 1.
FLAME  becomes FLAM.
Step 2
Counting 10 characters in Circular list in the string  FLAM  will
leave me with 'F AM'
Step 3
Counting 10 characters in circular list in the string "F AM" will
leave me with  "AMFAMFAMF(A)" is out and the result is  F M
Step 4
Counting 10 characters in circular list  in the string "MFMFMFMFMF"
will leave me with "M" in the word FLAME and "M" stands for Marriage
(I AM ENDED WITH A WRONG EXAMPLE LOGICALLY ;)..

I want to write a scheme implementation in guile and the same i want
it to give extension in  emac.
Can you guide me the link for the syntaxially ref which will enable to
do this job in guile.

Thanks in advance.

Thyagarajan.S

Other related posts: