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

Volity::WinnersList 0.6.5

  Date Added: January 24, 2010  |  Visits: 532

Volity::WinnersList

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)



Volity::WinnersList is Perl class for Volity game record winners lists. SYNOPSIS Heres code you might see in a Volity::Game subclass implementing a game where there is one winner and a bunch of losers, the latter of whom are all effectively tied for second place (we assume that the methods called in the first two lines are defined elsewhere): if ($self->game_has_been_won) { my ($winner, @losers) = $self->get_winning_seat_order; $self->winners->add_seat_to_slot($winner, 1); $self->winners->add_seat_to_slot(@losers, 2); $self->end; } And heres what you might see in a subclass defining a score-using games where each player has a discrete ordinal place, and ties and ties are not possible (again assuming the presence of some magic methods defined somewhere else in the subclass): if ($self->game_has_been_won) { my @ordered_seats = $self->get_winning_seat_order; for (my $index = 0; $index <= $#ordered_seats; $index++) { my $place = $index + 1; $self->winners->add_seat_to_slot($ordered_seats[$index], $place); } $self->end; } Attached to every Volity::Game-subclass object is a WinnersList object, accessible through the game objects winners method. When a game wraps up, it should use the methods listed in this document to place the tables seats in a winning order before calling the end method. The referee will then use this information when it builds the game record to send to the Volity bookkeeper. METHODS slots Accessor to the raw list of winner slots. Returns an array of anonymous arrays, each representing a single slot, in winning order: the one at index [0] is the winningest slot, and the one at [-1] is the losingest. Each of these slot-arrays contains a number of Volity::Seat objects. add_seat_to_slot ($seat, $position) Adds the given seat to the winners list at the given position. Note that the position is expressed in game-rank, so the first-place position is 1, not 0. If there are already seats at the current position, the given seat will share the slot with them. As a shortcut, you can add several seats at once to the same slot by passing an arrayref of seats as the first argument. seats_at_slot ($position) Returns the list of seats the given position in the winners list. Note that the position is expressed in game-rank, so the first-place position is 1, not 0..

Requirements: No special requirements
Platforms: Linux
Keyword: Game Libraries Position Programming Seat Seats Slot Volitywinnerslist Winners Winnerslist
Users rating: 0/10

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


VOLITY::WINNERSLIST RELATED
Board Games  -  Figuring Out Slot Machines Quiz Guide 1.0
This guide is all about the game known only as Figuring Out Slot Machines Quiz. Within this guide you shall find plenty of tips and tricks to help you win. See if you can solve the challenging quiz in the backbreaking trivia game. The quiz itself...
1.77 MB  
Games  -  Empire Slot Machine -Lucky Vegas Free 1.0
*** Become The Spin Master,Empire Slot Machine Is Right Game!*** Here comes the latest casino slot game Empire Slot Machine! Simply Awsome! Empire Slot Machine Slot is the slots game providing unlimited entertainment, top-tier...
43.5 MB  
Arcade Style Games  -  jtronic 1.0beta1
JTronic is a game designed for programming competitions. Players program a Java agent that participates in a game that combines the classic Tron and PacMan games. Features include an AWT GUI, record/playback functionality, and tournament mode.
1.01 MB  
Games  -  Razzy Match Lite 1.0
1. The beloved puzzle game in a new dimension. Razzy MatchCombine 3 or more gondolas of the same color, collect points and enjoy cool sounds. Be part of the game and take a seat in your gondola! 2. Find the correct pairs of sounds and...
18.3 MB  
Games  -  Slots Of Pixels - Win Jackpot Minecraft Edition FREE 1.0
******** Free Pixel Slots Game! ********** ********* Endless spinning fun *********** This game is a unique and addictive slot machine app. The slot items resemble cool Minecraft items, and the play style is easily understandable...
5 MB  
Games  -  Shadow of Flames 0.4.0.0
This is a windows phone game MADE IN UNDER 48 hours. It is a two player turn based strategy (TBS) game in a hot seat style where one player tries to beat the other by either: 1) Destroying all thier apponents units. 2) Dealing 10...
2 MB  
Libraries  -  Volity::Seat 0.6.5
Volity::Seat is a Volity seat, containing some players. SYNOPSIS # From within a Volity::Game subclasss code: my @seats = $self->seats; # Or, given a Volity::Player object: my $seat = $player->seat; # Now tell the seat they just picked...
102.4 KB  
Libraries  -  LWJGL 0.99
LWJGL (Lightweight Java Game Library) is a solution aimed directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. LWJGL provides developers access to high performance crossplatform...
1.3 MB  
Libraries  -  Firebolt 0.3.6
Firebolt is a network protocol oriented library. Our goal is to create a simple and well designed object oriented network library. We started this effort by being ourselves in the game developers position and facing the problem of lack of...
101.38 KB  
Games  -  180 Above Vegas Slot Machine - Spin the fortune wheel to win the grand prize 1.0
An Insanely fun SLOTS game ever! A pocket slot in your hand. Have fun with stunning slots theme, just place your bet, spin the wheel, and win the coins! You will enjoy with amazing interactive gameplay, stunning audio and sound effects....
16.6 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 3.15.3
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