Die Word Search!

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Die Word Search!

Post by JS Lemming »

Scenario: You are given a stupid word search in school. Yuck, manual labor\busy work as homework! What's a guy to do? Dutifully find random words in a huge block? Forget that! So I write a little program that finds them for me. :mrgreen:

Sure, I could have finished the word search manually on my own in about the same amount of time and probably faster... But in doing it this way I learned and gained experience.

Now all I had to do was type up the block.
puzzle.txt wrote:MHDERBESSERGORPSKROW
COISNIKPOHYTIRUCESRT
HERADJUSTMENTHAWLIEY
AZEANATIEGNAHCXEGONT
TICATWENTIETHLAHOOVC
SLTRRORUGINDUSTRIALA
NAROEGRNOITAVRESNOCR
ANENCEDILLUHLLEDROCE
IOLAOAMEUNODOMENTDFN
RIIENIRPUMPTOOMSEESG
ATELAEDWENNCAAVIDTEA
TAFESFRLANNALPCEESBW
INROTOOSRIRGSRVERALT
NYTIRAPEMORERIGENNSR
ACYCNIVGNERILCTKIIAE
MNABUDNGNRIOCEHRTULD
UTAOROIGLASSOOFAAURL
HNANLANVLVAELSMELPLU
KEFUBIIYIVIIEGERIGIO
LAASDCSNEDDPASSVCLUB
YUIATKNCTAURERSREIET
TTRRIEOLYRPAIREEELSR
RTYMOSSILAUBLOKRNNTL
EHNYNLMFEAGSUIEIHNWU
BOAOCHOFEYHATRSONLEO
IRTNHOHOECNANIFMDSPT
LIIAAMTROBALLANOITAN
Then type up the words to find.
words.txt wrote:HOOVER
INCOME
MORATORIUM
BOULDER
ROOSEVELT
BANKHOLIDAY
CORDELLHULL
ELEANOR
LONG
PARITY
ALGREB
AARON
FINANCE
CONSERVATION
TENNESSEE
GLASS
EXCHANGE
NATIONALLABOR
SECURITY
BONUSARMY
DIRECTRELIEF
NEWDEAL
HOMELOADBANK
TWENTIETH
NATIONALIZE
BIPARTISAN
ICKES
LIBERTY
TRADING
CLIFFORDODETS
PUMP
SMOOT
HUMANITARIAN
BRAINTRUST
INDIVIDUALISM
PRAGMATIST
CHATS
PERKINS
HOPKINS
ADJUSTMENT
WAGNERACT
WRIGHT
THOMSON
PRICE
RELIEF
OWNERS
INDUSTRIAL
FAIR
WORKSPROGRESS
Run the program and BAM!!!

Image

It's a thing of beauty! It did, however, alert me that it couldn't find 1 word. Most likely because I made a typo in the huge block. But still!
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
skywalker541
Chaos Rift Regular
Chaos Rift Regular
Posts: 137
Joined: Thu Sep 01, 2005 9:12 pm

Post by skywalker541 »

that's pretty awesome
Image
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

Huzzah! No one can say that writing that program was a waste of time now because it has started to pay for itself! We got another word search in US history... And with only about 5 min of typing the text block, the puzzle was totally solved! Woot!
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Wutai
Chaos Rift God
Chaos Rift God
Posts: 1510
Joined: Sat May 29, 2004 2:30 am
Location: Currently incarcerated.

Post by Wutai »

Good job Henry. I hate/love word searches.

I love then just as busy work during class, but when we have to finish them as homework I hate them.
This is a joke about unfunny jokes. And bad use of irony.
User avatar
spideyspiderman2000
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1177
Joined: Fri Sep 17, 2004 9:28 pm
Location: Stupid Kansas
Contact:

Post by spideyspiderman2000 »

God, I hate school word searches.

Put that up for download...

I'll give you a nickel...
South Park wrote:Mr Garrison: Okay class. Can anybody tell me what "Sexual Harrassment" is?

Cartman: Isn't that when you're having intercourse with a special lady friend, and some other guy comes up behind you and tickles your balls?
I HATE Jack Thompson!
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

A nickle? BAH! It's worth more cents than that!
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Wutai
Chaos Rift God
Chaos Rift God
Posts: 1510
Joined: Sat May 29, 2004 2:30 am
Location: Currently incarcerated.

Post by Wutai »

I'll be yer best friend EVAR if you put it up fer download.
This is a joke about unfunny jokes. And bad use of irony.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

Holy crap, JSL. You're a little bitch!

That's gotta be the most badass little hackery I've ever seen!

:cheers: :hitit: :worship:
Post Reply