Gday i already asked for help in the vb.net forum,im new so im guessing i was in the wrong forum as i didnt receive much help.ive posted all the original text from the thread below.
G day ,im a parent from Australia.
My child is 7 turning 8 and i would like to create a simple hangman game in visual basic that he can use.
id please like to know the logistics of making the game.
This is how id like it to work,ive investigated different games....
i would like it to have a text box where you enter a single letter into it at any time and then obviously if its wrong, the wrong letter disappears, no longer being able to click.
Would someone please be able to think of the simplest possible way for me to do this,its important for me to not have it done by someone else and to make this game for my son myself.
I would like to be able to change/add the words in the game in the code,so that my son wont get bored
this is my first problem and i have heard this is a very friendly board,if you can assist me then thank you very much!
id just like to clarify that id like to solely use VB to make the program.i think ill just go into the code and change/add new words when my son gets bored etc.
Id like for the game to be really simple ;with the words being randomly selected ,each letter of the random word being part of an array,and having the images of the hangman appear when a guessed letter matches one of the letters in the array.
im guessing part of the code would be something like this..
Help with Code Tags
(Toggle Plain Text)
If text1 = text2
Then Image.Show
If text1 = text2 Then Image.Show
i have also written some pseudo code to start it off
Help with Code Tags
(Toggle Plain Text)
fullword = "jungle";
word = ("j","u","n","g","l","e");
player = ("-","-","-","-","-","-");
while (win = false) {
print "So far, you have.. " + player;
print "What is your next guess? ";
input guess;
for (i = 0; i < 6; i++) {
if (guess = word[i]) {
player[i] = guess;
}
}
checker = player[0] + player[1] + player[2] + player[3] + player[4] + player[5];
if (checker = word[6]) {
win = true;
}
}
print "You win!";
fullword = "jungle"; word = ("j","u","n","g","l","e"); player = ("-","-","-","-","-","-"); while (win = false) { print "So far, you have.. " + player; print "What is your next guess? "; input guess; for (i = 0; i < 6; i++) { if (guess = word[i]) { player[i] = guess; } } checker = player[0] + player[1] + player[2] + player[3] + player[4] + player[5]; if (checker = word[6]) { win = true; } } print "You win!";
i have got a visual basic book from a library and it has all the basics on everything ,but im still stumped as how to start things off in terms of actually writing the code.What things in the book should i focus on in this type of game???
as you can see from my pseudo code,each letter from the word will be split up into an array.
i know most of you are experts at visual basic etc. but im just a novice please assist me with what ive done so far,thank you!