Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 need to create anagrams in turing
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
disk256




PostPosted: Wed Jun 04, 2008 10:26 pm   Post subject: 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 Laughing
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Jun 04, 2008 10:41 pm   Post subject: RE:need to create anagrams in turing

arrays and substrings in the Turing Walkthrough
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
disk256




PostPosted: Wed Jun 04, 2008 10:56 pm   Post subject: 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




PostPosted: Wed Jun 04, 2008 11:06 pm   Post subject: Re: need to create anagrams in turing

disk256 @ Wed Jun 04, 2008 10:56 pm wrote:
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)?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
syntax_error




PostPosted: Wed Jun 04, 2008 11:28 pm   Post subject: Re: need to create anagrams in turing

disk256 @ Wed Jun 04, 2008 10:26 pm wrote:


if possible
may i look at a sample code Laughing


no

as for a simple guildline on what you are going ot make on your own, here a small push


code:


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




PostPosted: Thu Jun 05, 2008 10:15 am   Post subject: 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




PostPosted: Sun Jun 08, 2008 10:00 pm   Post subject: Re: need to create anagrams in turing

wasnt hard figured it out myself after stayin up till 4 am
Rolling Eyes
syntax_error




PostPosted: Mon Jun 09, 2008 3:22 am   Post subject: Re: need to create anagrams in turing

jeffgreco13 @ Thu Jun 05, 2008 10:15 am wrote:
LOL i really hope you don't put that above code into Turing.


It is called pseudo-coding.
Sponsor
Sponsor
Sponsor
sponsor
jeffgreco13




PostPosted: Mon Jun 09, 2008 10:36 am   Post subject: 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




PostPosted: Thu Jun 12, 2008 12:34 pm   Post subject: RE:need to create anagrams in turing

use an array of char
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: