Login   Register  
PHP Classes
elePHPant
Icontem

PHP Blackjack Simulator: Simulate a Blackjack game with one player

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 (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-12-03 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 343 This week: 3All time: 6,323 This week: 533Up
Version License PHP version Categories  
blackjack 1.0GNU General Public Lice...5PHP 5, Games
Description Author  

This class can simulate a Blackjack game with one player.

It can start a game adding cards for the player and the bank.

The player can either add more cards until it reaches the score 21 or stand so the bank plays adding its cards and end the game.

The class can return the final results when the game ends.

The cards added by the bank and the player are stored in class variables, so it is possible to get the list of cards to display to the player user.

Picture of Ali Sami
Name: Ali Sami <contact>
Classes: 1 package by
Country: United Arab Emirates United Arab Emirates
Age: ???
All time rank: 33106 in United Arab Emirates United Arab Emirates
Week rank: 536 Up2 in United Arab Emirates United Arab Emirates Up

  Files folder image Files  
File Role Description
Plain text file class.blackjack.php Class Blackjack class
Accessible without login Plain text file usage.php Example Usage of the class

 Version Control Unique User Downloads Download Rankings  
 0%Total:343All time:6,323
 This week:3This week:533Up