Login   Register  
PHP Classes
elePHPant
Icontem

Card deck: Manipulate card decks

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 920 This week: 7All time: 3,619 This week: 195Up
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
Name: Arturs Sosins <contact>
Classes: 22 packages by
Country: Latvia Latvia
Age: 27
All time rank: 791 in Latvia Latvia
Week rank: 14 Up1 in Latvia Latvia Equal
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:920All time:3,619
 This week:7This week:195Up
 User Comments (1)