PHP Classes

Card deck: Manipulate card decks

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 39%Total: 1,228 All time: 3,110 This week: 44Up
Version License PHP version Categories
card-deck 1BSD License5.0PHP 5, Games
Description 

Author

This class can manipulate card decks.

It can add cards to a deck by adding card type rules that define identifiers to the type of cards and the number of card that will exist for each type.

The class can also shuffle the cards in the deck and deal a given number of cards to each player.

Innovation Award
PHP Programming Innovation award nominee
March 2011
Number 8
There are many types of card games that employ different types of card decks.

This class provides a flexible solution to generate and manipulate custom decks of cards that can be used to implement many different types of card games.

Manuel Lemos
Picture of Arturs Sosins
  Performance   Level  
Name: Arturs Sosins <contact>
Classes: 22 packages by
Country: Latvia Latvia
Age: 36
All time rank: 511 in Latvia Latvia
Week rank: 312 Down2 in Latvia Latvia Down
Innovation award
Innovation award
Nominee: 13x

Winner: 2x

  Files folder image Files  
File Role Description
Plain text file card_deck.php Class Main class
Accessible without login Plain text file durak_game.php Example Example for game Durak
Accessible without login Plain text file poker_game.php Example Example for Texas Holdem Poker
Accessible without login Plain text file saboteur_game.php Example Example for game Saboteur
Accessible without login Plain text file uno_game.php Example Example for game UNO

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,228
This week:0
All time:3,110
This week:44Up
User Ratings User Comments (1)
 All time
Utility:58%StarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:41%StarStarStar
Tests:-
Videos:-
Overall:39%StarStar
Rank:3819