I also note that if $target is 100, $guess will reach 99 and stay there forever; try having $max be one more than the end of the possible range.
In reply to Re: Number gussing game
by ysth
in thread Number gussing game
by juwaidah1990
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |