Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 18th, 2004, 10:26 PM
slicedbanana slicedbanana is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 slicedbanana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need some help from Delphi Experts

Hi, I'm new to this forum and new to programming. I'm currently trying to create a hang man game and it works great. Anyway, I have used a text file and linked that in with delphi so that it can randomly pick a word to "mask" when a button is clicked.

However, I want to add more than one word on some occasions (i.e category artists ---> Van Gogh) But my program only does one word.

The for loop I have now, currently reviews each letter and converts it into an asterisk. But when i type in more than one word in the text file, the for loop recognises the space in between the words as a character and applies an asterisk to it as well, which isn't what I want. So when playing the game, you end up having a string of asterisks for 2 or 3 words. And when you have solved it, you end up with the revealed words, but separated by an asterisk or 2.

My point is, I would like to know whether there is any way in which I can somehow get a procedure or whatever where it skips the "space" so that you dont have the annoying problem of it getting "masked".

Thanks, Leon

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Need some help from Delphi Experts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT