Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.066.242 Times

Games::Blackjack 0.04

  Date Added: March 20, 2010  |  Visits: 654

Games::Blackjack

Report Broken Link
Printer Friendly Version


Product Homepage
Download (85 downloads)

Games::Blackjack is a Perl module with Blackjack Utility Classes. SYNOPSIS use Games::Blackjack; # Create new shoe of cards my $shoe = Games::Blackjack::Shoe->new(nof_decks => 4); # Create two hands, player/dealer my $player = Games::Blackjack::Hand->new(shoe => $shoe); my $dealer = Games::Blackjack::Hand->new(shoe => $shoe); # Two dealer cards $dealer->draw(); print "Dealer: ", $dealer->as_string(), "n"; $dealer->draw(); # 2nd card not shown $player->draw(); $player->draw(); print "Player: ", $player->as_string, "(", $player->count_as_string, ")n"; # Lets assume player decides to stand. Dealers turn. # Dealer plays Las Vegas rules while(!$dealer->busted() and $dealer->count("soft") < 17) { $dealer->draw(); } # Show winner (-1: Dealer, 1: Player, 1.5: Player Blackjack) print "Player score: ", $player->score($dealer), "n";.

Requirements: No special requirements
Platforms: Linux
Keyword: Blackjack Blackjack Utility Classes Dealer Draw Gamesblackjack Libraries Perl Module Player Programming Shoe Utility
Users rating: 0/10

License: Freeware Size: 6.14 KB
GAMES::BLACKJACK RELATED
Libraries  -  Mozilla::Backup 0.06
Mozilla::Backup is a Perl module as a backup utility for Mozilla profiles. SYNOPSIS $moz = Mozilla::Backup->new(); $file = $moz->backup_profile("firefox", "default"); This package provides a simple interface to back up and restore the...
31.74 KB  
Libraries  -  Bio::NEXUS::Functions 0.67
Bio::NEXUS::Functions is a Perl module that provides private utility functions for the module. This package provides private functions that are not object-specific..
153.6 KB  
Programming  -  Web Support 0.1
Cocoa utility classes for dealing with web resources Web Support is a set of Objective-C utility classes extensions for for dealing with web resources.
10.24 KB  
Libraries  -  Class::Std::Utils 0.0.2
Class::Std::Utils is a Perl module for utility subroutines for building "inside-out" objects. SYNOPSIS use Class::Std::Utils; # Constructor for anonymous scalars... my $new_object = bless anon_scalar(), $class; # Convert an object...
5.12 KB  
Libraries  -  AFS::Utils 2.4.0
AFS::Utils is a Perl module with shared utility functions for the AFS module bundle. SYNOPSIS use AFS::Utils qw ( XSVERSION get_server_version get_syslib_version setpag sysname unlog ); my $ok = setpag(); print "Return Code = $okn";...
184.32 KB  
Libraries  -  Contextual::Return::Failure 0.1.0
Contextual::Return::Failure is a Perl module with a utility module for Contextual::Return. NOTE Contains no user serviceable parts. See Contextual::Return instead..
22.53 KB  
Libraries  -  DateTime::Format::Builder 0.7807
DateTime::Format::Builder is a Perl module to create datetime parser classes and objects. SYNOPSIS package DateTime::Format::Brief; our $VERSION = 0.07; use DateTime::Format::Builder ( parsers => { parse_datetime => [ { regex =>...
48.13 KB  
Libraries  -  Java::Import 0.03
Java::Import is Perl module to use Java classes in Perl. SYNOPSIS use Java::Import qw( some.package.SomeClass ); my $instance = new some.package.SomeClass(); $instance->someMethod(); my $ret_val =...
28.67 KB  
Libraries  -  Class::Agreement 0.02
Class::Agreement is a Perl module that add contracts to your Perl classes easily. SYNOPSIS package SomeClass; use Class::Agreement; # use base Class::Accessor or Class::MethodMaker, # or roll your own: sub new { ... } invariant { my...
27.65 KB  
Libraries  -  Gestinanna::Util 0.02
Gestinanna::Util Perl module contains utility functions. SYNOPSIS use Gestinanna::Util qw(:path); my $regex = path2regex($path) my $cmp = path_cmp($path_a, $path_b); use Gestinanna::Util qw(:hash); my $new_hash =...
215.04 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB