in reply to logic problem with perl game
use strict; use warnings;
|Replies are listed 'Best First'.|
Re^2: logic problem with perl game
by mynameisG (Novice) on Dec 04, 2010 at 01:56 UTC
^^did that, just needed to add 'my' to the beginning params etc...
You need to be a lot more serious towards those two lines.
Peter (Guo) Pei
Okay so I am really close now, I got # of wins to go +1 now. But the only problem left is that I can only get +1 for # of wins if the random word(@words) is the same word 2 times in a row, otherwise its +1 to # of losses... I had the same problem in an earlier game I made, and I did the same thing to fix it(since the word that is printed is random, i store the random value in a new param($correctryhm)) but for some reason its not working...any advice? thanks guys for all the help, i'm kind of new to perl here's my newly edited code..