PHP Classes

Card deck: Manipulate card decks

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-04-25 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,007 This week: 2All time: 3,461 This week: 647Up
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: 28
All time rank: 661 in Latvia Latvia
Week rank: 20 Up2 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,007All time:3,461
 This week:2This week:647Up
 User Comments (1)