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 40.143.971 Times

Games::Euchre::Player 1.02

  Date Added: February 08, 2010  |  Visits: 1.377

Games::Euchre::Player

Report Broken Link
Printer Friendly Version


Product Homepage
Download (102 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  -  Bowling Solitaire 1.0
Bowling Solitaire is a free solitaire card game where the player places cards in rising order in bowling pin positions. When a player can't place a card on a pin location it must place a card on a ball position. The game is scored like bowling.
3.44 MB  
Casino Games  -  Windmill Solitaire 1.0
Windmill Solitaire is a two deck solitaire card game where they player is trying to move cards from the piles, or the freecells on blades of the windmill to the foundation in the middle, building it up from Ace to King and wrapping back to Ace,...
3.34 MB  
Casino Games  -  Emperor Solitaire (3 Pass) 1.0
Emperor Solitaire is a 2 deck solitaire card game where the player is trying to arrange the cards in the two decks into a formation where the 8 queens are surrounding the King of Hearts. The game begins with 7 Kings and and ace in the foundations.
3.33 MB  
Casino Games  -  Strategy Solitaire 1.0
Strategy Solitaire is a freeware solitaire card game where the player has 8 waste piles into which the player can place the card from the deck. Once the dealer has dealt all cards from the deck into the waste piles he can move them to the...
3.42 MB  
Casino Games  -  Euchre Solitaire 1.0
Euchre Solitaire is a single player euchre card game where the player plays cards against the deck according to the rules of euchre. The player must take 3 tricks against the deck to win a hand.
3.41 MB  
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  -  Aces Up Solitaire 1.0
Aces Up Solitaire is a free solitaire card game where the player moves to the foundation any top card that is not the highest valued card in it's suit. A player may also choose to discard up to 5 cards that are preventing the player from moving...
3.41 MB  
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  
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