I have:
Code: Select all
while ($winner == 0 || $b < 200)
{
if
{
if
{
$winner++;
}
}
}The $b variable is fine, it increments by 1 each loop, so there is 200 loops
The trouble I am having is the while statement doesnt seem to be recognising that $winner has changed. I even print the $winner variable after each loop and it prints 1, then maybe 2 and 3 before it cuts off at 200 (sometimes it goes over 200, like to 205)
Does anyone know what is going on?