Poker in PhP
Posted: Mon Oct 06, 2008 4:40 pm
Hi All,
I am creating a very simple online poker game. The main poker engine that evaluates hands, distributes cards etc. is created in PhP.. I am not sure how to make the front end.. like the part that will be run at the client end to receive user inputs like mouse clicks.. I know I need to use javascript to capture mouse events but I am not sure how communicate information between php and javascript... for example.. when a poker tournament starts, some php array should keep track of a players chip count... and that based on the amount of chips he bets that array need to be modified.. I am not sure how to implement this type of functionality..
I will appreciate any suggestions and comments..
Thanks
I am creating a very simple online poker game. The main poker engine that evaluates hands, distributes cards etc. is created in PhP.. I am not sure how to make the front end.. like the part that will be run at the client end to receive user inputs like mouse clicks.. I know I need to use javascript to capture mouse events but I am not sure how communicate information between php and javascript... for example.. when a poker tournament starts, some php array should keep track of a players chip count... and that based on the amount of chips he bets that array need to be modified.. I am not sure how to implement this type of functionality..
I will appreciate any suggestions and comments..
Thanks