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.

Tags Games/Entertainment
Licenses GPL
Implementation PHP

Tweet this project Short link

Rss Recent releases

Changes: 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.

  • Rrelease-mid
  •  31 Jul 2006 13:24
  • Rrelease-after

Changes: 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.

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

  • Rrelease-mid
  •  16 Jul 2006 20:18
  • Rrelease-after

Changes: 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).

  • Rrelease-mid
  •  20 Jun 2006 07:24
  • Rrelease-after

Changes: 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.

No-screenshot

Project Spotlight

z80ex

A ZiLOG Z80 CPU emulator.

No-screenshot

Project Spotlight

FeResPost

A COM component and Ruby extension for finite element results post-processing.