View Single Post
  #6 (permalink)  
Old 11-12-03, 10:31 AM
Arowana Arowana is offline
Newbie Coder
 
Join Date: Oct 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry about saying "guys". I didn't realize at first that both posts were yours, millenium. Thanks a lot.

You were right about the http headers. I didn't even see that. Thanks! There are some new issues...
When first visiting the site, it says:
"Sorry, your word was:"
New Game button

If I then press the "New Game" button, that game starts and works fine. Other than that, your iteration of the script seems to work fine! Great, thanks!

I changed this in the script:
Code:
sub MakeLines {
   my $blanks;
   $blanks .= "_" for (1..length($_[0]));
   return $blanks;
}
to this:
Code:
sub MakeLines {
   my $blanks;
   $blanks .= "_ " for (1..length($_[0]));
   return $blanks;
}
Notice the whitespace now inside the quotation marks?
Code:
"_ " instead of "_".
I did that so that when a game is played, it will show, say 10 spaces if the word in question happens to have 10 letters to guess. The problem now is that, when I do that, I have noticed that, say once again that a word has 10 letters, fifteen spaces will actually appear, and even if you get the word right, there are still empty spaces and the game will force a loss on the player if you continue down to 0 guesses. Why is that? I would appreciate any further help, millenium! Thank you!

Chris
Reply With Quote