Quote:
Originally posted by Jerom
When you do random things, doesn't it also do decimals and not just whole numbers?
|
yep.
Also, the parts where you check stuff like this.dir=3 should be this.dir==3. Quick guide to where to use == as opposed to =:
if = is found inside:
if ()
while ()
or the second part of for ()
then use ==
otherwise, use
=