| | |
Hangman Project
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2004
Posts: 10
Reputation:
Solved Threads: 0
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....
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....
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
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:
no www
no nonsense
coming soon to a pc near you! :cool:
![]() |
Similar Threads
- Hangman Project (VB.NET)
- Hangman project (VB.NET)
- hangman project (VB.NET)
- hangman project (VB.NET)
- hangman revised (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: How to implement continuous integration using TFS Server?
- Next Thread: Creating exe file
| Thread Tools | Search this Thread |
"crystal .net .net2005 2008 access add advanced application array assignment basic beginner box button buttons center click client code combo convert cpu data database datagrid datagridview designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists firewall forms html image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity pan picturebox picturebox2 port print printpreview record regex reports" reuse right-to-left save savedialog search serial socket sorting sql sqldatbase sqlserver storedprocedure string temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winsock wpf wrapingcode xml






