Fixed poker bug rare case

  

Back to forum


Thibault de Vassal    (2009-12-01)
Fixed poker bug (rare case)

There may have been a bug in a few poker games, provoking the loss of the game without any "obvious" reason.

As a reminder for myself it happened here :

http://www.ficgs.com/user_page.php?page=viewer&game=32014&move=1338

This is where PHP is magic, sometimes '1' == '1-0' , sometimes not (the operator === is useful then), according to the way the variables are calculated. I fell into the trap... Now it should be ok. I verified several thousand games without this problem but do not hesitate to warn me if you noticed something strange in one of your games.