COLORADO: 12:04 pm
JAPAN: 3:04 am

-1217 days for S+Y!



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: PHP Blackjack Simulator
PostPosted: Mon Dec 09, 2013 2:43 pm 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1557
Location: Colorado
http://www.phpclasses.org/package/8376.html

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.

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests



Search for:
cron

This site contains adult natured content. All material submitted to this site is the sole responsibility of the submitter.

© 2023 Iron Feather Journal

 

Recent Visitors: