PHP Classes

PHP Blackjack Simulator: Simulate a Blackjack game with one player

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 488 All time: 5,894 This week: 52Up
Version License PHP version Categories
blackjack 1.0GNU General Publi...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
  Performance   Level  
Name: Ali Sami <contact>
Classes: 1 package by
Country: United Arab Emirates United Arab Emirates

  Files folder image Files (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:488
This week:0
All time:5,894
This week:52Up