
-----------------------------------
disk256
Wed Jun 04, 2008 10:26 pm

need to create anagrams in turing
-----------------------------------
hi, 
im trying to make a game   where one has to slove anagrams and guess the correct words but i cant get the anagrams help 
would be appreciated greatly 
if possible 
may i look at a sample code :lol:

-----------------------------------
Tony
Wed Jun 04, 2008 10:41 pm

RE:need to create anagrams in turing
-----------------------------------
arrays and substrings in the Turing Walkthrough

-----------------------------------
disk256
Wed Jun 04, 2008 10:56 pm

Re: need to create anagrams in turing
-----------------------------------
i knw how to use strings 
but i want to jumble up strings like wen i enter the word 
dope 
it shld gimme peod

-----------------------------------
Tony
Wed Jun 04, 2008 11:06 pm

Re: need to create anagrams in turing
-----------------------------------
i knw how to use strings 
but...
clearly not well enough.

How would you break a word up into individual letters (same order as the word, for starters)?

-----------------------------------
syntax_error
Wed Jun 04, 2008 11:28 pm

Re: need to create anagrams in turing
-----------------------------------


if possible 
may i look at a sample code :lol:

no

as for a simple guildline on what you are going ot make on your own, here a small push 




proc you_win ()
proc you_loss ()
get word from user

compare it to original_word

if word = original_word
 then you_win

if word != original_word 
then you_loss



-----------------------------------
jeffgreco13
Thu Jun 05, 2008 10:15 am

Re: need to create anagrams in turing
-----------------------------------
LOL i really hope you don't put that above code into Turing. But really pay attention to what Tony said, there's a way to isolate the characters for each word and scramble them as you please.

You're gonna have to look it up tho, it's not nearly as hard as it may seem.

-----------------------------------
disk256
Sun Jun 08, 2008 10:00 pm

Re: need to create anagrams in turing
-----------------------------------
wasnt hard figured it out myself after stayin up till 4 am 
 :roll:

-----------------------------------
syntax_error
Mon Jun 09, 2008 3:22 am

Re: need to create anagrams in turing
-----------------------------------
LOL i really hope you don't put that above code into Turing.

It is called pseudo-coding.

-----------------------------------
jeffgreco13
Mon Jun 09, 2008 10:36 am

Re: need to create anagrams in turing
-----------------------------------
OMG really? i thot those were legit commands in Turing...

I'm just saying I hope he realizes it's pseudo and doesn't try to use that and adapt it to his own. The things I've seen some inexperienced programmers do, would blow your mind.

-----------------------------------
S_Grimm
Thu Jun 12, 2008 12:34 pm

RE:need to create anagrams in turing
-----------------------------------
use an array of char
