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

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

Serving Software Downloads in 956 Categories, Downloaded 49.480.478 Times

Games::Euchre::Player 1.02

  Date Added: February 08, 2010  |  Visits: 1.472

Games::Euchre::Player

Report Broken Link
Printer Friendly Version


Product Homepage
Download (110 downloads)



Games::Euchre::Player is a player class for Euchre card game. The four Player objects are used to interact with the humand and computer players, as well as to keep the state of the players hand, whether he bid and whether he went alone. CLASS METHODS new GAME NUMBER NAME Create and initialize a new Euchre player. The number is 1-4. INSTANCE METHODS getGame Return the Euchre game instance to which this player belongs. setTeam TEAM Record the Team instance that this player belongs to. getTeam Return the Team instance to which this player belongs. setAI AI Record the AI instance for this player. getAI Return the AI instance for this player. setAlone Indicate that this player has chosen to go alone in the current hand. setBid Indicate that this player has chosen to choose trump in the current hand. wentAlone Returns a boolean indicating whether this player chose to go alone on a bid. isBidder Returns a boolean indicating whether this player called the trump suit during bidding. getName Return this players name getNumber Return this players number, between 1 and 4 getHand Return the Games::Cards::Hand object representing this players current hand. getCards Return an array of the Games::Cards::Card objects held in the players hand. resetGame Clear all of the state for the current game and get ready for the next one. resetHand Clear all of the state for the current hand and get ready for the next one. bid TURN Allow the player to choose trump or pass. Returns one of: H, C, D, S, N, HA, CA, DA, SA, NA, or undef. If the player has an AI instance set, that is invoked. Otherwise a pathetically simple AI decides the bid. pickItUp Allow the player, as dealer, to select which card to trade for the turned up card. This method performs the actual trade. If the player has an AI instance set, that is invoked. Otherwise a pathetically simple AI chooses the card. playCard TRICK Allow the player to select which card to play on the current trick. This method performs the actual play. If the player has an AI instance set, that is invoked. Otherwise a pathetically simple AI chooses the card. isLegalBid TURNNUMBER BID Given a bid, return a boolean indicating the validity of that bid. The bid is tested for structure (one of H, C, D, S, N, HA, CA, DA, SA, NA, or undef), tested against the bidding round (only the turned-up card suit can be called in round 1 , and may not be called in round 2), against the game options (hang-the-dealer, no-trump). This is called from the bid() method..

Requirements: No special requirements
Platforms: Linux
Keyword: Ai Bid Card Gameseuchreplayer Instance Libraries Player Player Class Players Programming Return
Users rating: 0/10

License: Freeware Size: 21.5 KB
USER REVIEWS
More Reviews or Write Review


GAMES::EUCHRE::PLAYER RELATED
Libraries  -  Games::Battleship::Player 0.05
Games::Battleship::Player is a Battleship player class. SYNOPSIS use Games::Battleship::Player; $aeryk = Games::Battleship::Player->new(name => Aeryk); $gene = Games::Battleship::Player->new(name => Gene); print Player 1: , $aeryk->name,...
11.26 KB  
Casino Games  -  Solitaire Memory Match 1.0
Memory Match Solitaire is a free card game where the player attempts to match all the cards in a deck with cards of the same face value. Play to see how you score in world wide rankings. You can download Memory Match Solitaire, or play for free,...
4.13 MB  
Libraries  -  WML::Card 0.02
WML::Card is a Perl extension for builiding WML Cards according to the browser being used. SYNOPSIS use WML::Card; my $options= [ [Option 1, http://...], [Option 2, http://...], ]; my $c = WML::Card->guess(index,Wap Site);...
5.12 KB  
Casino Games  -  Nestor Solitaire 1.0
Nestor Solitaire is a matching solitaire card game where the player removes cards from the game as he finds matches between cards of the same rank that are not covered by other cards.
3.31 MB  
Puzzles  -  Fantasy Chess v2 Revision 11
Fantasy Chess is a chess game environment with a game server, GTK GUI, private and public AI, and a lot of libraries to help developers..
1.7 MB  
Mathematics  -  Math Science Quest 1.4
Math Science Quest is a fun way to learn the fundamental reasoning skills that are the essence of scientific method. It can be played as an individual puzzle or a multi-player game. Players explore a complex mathematical puzzle attempting to find...
14.3 MB  
Database Tools  -  Singleton PDO 1.0
Singleton PDO can be used to create a singleton instance of the PDO class.Singleton PDO provides a static function that stores a reference of the current object in a static variable. Next time the function is called, it returns a reference to the...
10 KB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
Programming  -  kin 0.0.2
kin is a set of libraries and tools supporting meta-programming for engineering and technical computing applications. This JVM version of kin has been superseded by the stand-alone version being developed at http://purl.org/net/kin.
477.44 KB  
Libraries  -  Term::TtyRec::Player 0.03
Term::TtyRec::Player is a Perl module that playbacks ttyrec data. SYNOPSIS use Term::TtyRec::Player; use FileHandle; # $handle is any IO::* object my $handle = FileHandle->new(file.tty); my $player = Term::TtyRec::Player->new($handle);...
4.1 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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