Projects / PHP Poker Engine

PHP Poker Engine

PHP Poker Engine can be used to implement a Poker game engine. It has a class that can deal and shuffle a deck of cards. There is another class that can evaluate a deck of cards to check whether it matches a Poker sequence. If the deck matches a Poker sequence, it returns the name of the sequence and the number of points it is worth in the Poker game.


Recent releases

  •  03 Apr 2007 13:17

    Release Notes: A new class called "pokerDeck2.php" is included in the package. It has improved shuffling using the mt_rand() function in favor of the shuffle() function. As a result, the "randomness" of the deal is improved.

    •  31 Jul 2006 20:24

      Release Notes: The erroneous reference to the "include" files for secondPairTest and fhTest were removed. Also, the missing getKickerText methods were added to pairs and high cards.

      •  18 Jul 2006 14:05

        Release Notes: The code was split into files for reassembly on the backend, since it was previously too large (530kb) for the server.

        •  17 Jul 2006 03:18

          Release Notes: This release accomplishes the all important task of breaking ties and creating kickers. Users can get initial points, points for individual kickers, total points, and text for kickers (in addition to text for the hand). It also has a unique point system so that every hand combo has its own score (including with kickers).

          •  20 Jun 2006 14:24

            Release Notes: The class in phpPokerEngine was renamed to "pokerEngine" from "massiveSwitch". massiveSwitch was the old name and is not used in the examples. To instantiate the objects accurately, you should use pokerengine.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.