Hangman Project

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2004
Posts: 10
Reputation: weazel is an unknown quantity at this point 
Solved Threads: 0
weazel weazel is offline Offline
Newbie Poster

Hangman Project

 
0
  #1
Dec 29th, 2004
Just like a few others, i was assigned a Hangman project for VB.NET!!!

Yea so this is wat we have to do

-----read a word from a text box - DONE

-----when play is clicked, the word is read and the number of letters is replaced with an underscore (_ ) - DONE

check if the letter clicked is in the word -NOT DONE HAS TO BE A FUNCTION! - so that all u have to do is call the function for each letter

display the letter if it is found- NOT DONE also a function

each miss should have a part of the man be built - NOT DONE, should be a function



please somebody help me, i have till sunday to finish this, i've been trying and trying, and i'm still lost....
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Hangman Project

 
0
  #2
Jan 1st, 2005
could you provide a bit more detail about how you are getting the users guesses ect... and where they come from?

A basic scheme would be

-Ask for a word (i would use inputbox) to use as the hidden word. lcase/ucase it.
-have an array of booleans for each letter (26 letters, ignore upper/lower)
DO
-When the user guesses, the value in the corresponding letter array flags true
eg user inputs an e, element 5 (index 4) = true
-Scan the hidden word and write a _ if the current letter is flagged false in the array - otherwise write the letter
EG the word is password
user has guessed e, and s
we write __ss____
-If the users letter was NOT in the word (use mid$) increase the number of wrong guesses
-draw a hangman or something equivalent
LOOP
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 10
Reputation: weazel is an unknown quantity at this point 
Solved Threads: 0
weazel weazel is offline Offline
Newbie Poster

Re: Hangman Project

 
0
  #3
Jan 1st, 2005
can u read the hangman revised one please? its heavily updated

and to answer ure question, i used a function that called a txt file, and randomly picked words and displayed in a label, well not the word, the word disguised with underscores.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3
Reputation: jahuli is an unknown quantity at this point 
Solved Threads: 0
jahuli jahuli is offline Offline
Newbie Poster

Re: Hangman Project

 
0
  #4
Jan 30th, 2007
i need helpin the code for hangman
plz sum1 send me the code plzz
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC