We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › newbie needs a little help with a project
Page Index Toggle Pages: 1
newbie needs a little help with a project (Read 620 times)
newbie needs a little help with a project
Mar 11th, 2008, 5:23pm
 
Hey all,
i got a project in class due tomorrow, and I seem to have run into an extremely strange roadblock. What I am trying to do is build a sort of crossword/wordsearch puzzle where the puzzle is styled like a wordsearch, but in reality is really just a crossword puzzle....that sounds kinda strange I know but bear with me. So when you first open up the puzzle, you're presented with a grid filled with seemingly random letters. The goal is to figure out what words those letters can form, and fill in the blanks by typing in the appropriate letter.

The problem I've come across is that when any letter is pressed, all the right answers appear at once! To the best of my knowledge, the problem lies in the letterGrid class, but I don't know what could be wrong, everything looks right.



Any help would be greatly appreciated.

Thanks!

the code is too long to include in this post so I've put it at the address below.
http://users.dma.ucla.edu/~Ride9650/code.zip
Re: newbie needs a little help with a project
Reply #1 - Mar 11th, 2008, 7:08pm
 
You've used = when you should have used == in all the if(turnedOn[0] lines in the display method of your letterGrid class.
Re: newbie needs a little help with a project
Reply #2 - Mar 12th, 2008, 4:22pm
 
fantastic! it worked!

Thanks John
Re: newbie needs a little help with a project
Reply #3 - Dec 1st, 2008, 8:23pm
 
hi, could you pls send your crossword code again link doesnt work. i'm quite inexperienced with processing. it would be helpful for me. thanks a lot.
Page Index Toggle Pages: 1