Actually, this is a web-based game.
I'm tring to figure out how to win it every time.
The code...
...
@b=(1,2,3,4,5,6);
$a1=$b[rand (@b)];
if($form_input eq $a1){You win and get some credits}
if($form_input ne $a1){Lose}
Can I put append something to the URL to make me a winner?
When I do ($a eq $b), I have several vaules for $a.
And if any one of them matches $b, it returns true.
so how can I assign those values to $a.
eg, $a can be 1,2,3
$b is 2.
$a=???
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.