I'm writing a script to deal a game of Texas Hold'em Poker.
The script uses sessions and includes some php and html files (header, footer, functionLib).
When using FireFox and Netscape Navigator, the script deals 2 cards on the turn and river, but in subsequent games it deals only 1 (like it's supposed to).
For those who don't know. In Hold'em, every player gets 2 down or pocket cards. Then 3 community cards are dealt face up in the middle of the table: this is the flop. Then 1 more community card is dealt: the turn. And finally one more community card: the river.
When using MS IE, the script works fine! It deals one card on the turn and river during the first game (and is subsequent games).
In short, FireFox and Navigator deal 2 cards during the first game when it's supposed to deal 1. IE does not have this problem.
Check it out at:
http://pokeredu.com/exercises/holdem/holdem.php
(To see the bug again, be sure to close all windows of your browser to restart the session.)
I suspect it has something to do with the sessions and the brower's type.
Any ideas?
Thanks!
Dirk Bruins
Thanks!
Dirk