It doesn't appear to be slow on my machine. I wrapped a for loop around it to guess all the numbers, and it ran quite nicely--with the exception of the case of $target=100. You'll want to fix that!
...roboticus
In reply to Re: Number gussing game
by roboticus
in thread Number gussing game
by juwaidah1990
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |