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

Volity::WinnersList 0.6.5

  Date Added: January 24, 2010  |  Visits: 710

Volity::WinnersList

Report Broken Link
Printer Friendly Version


Product Homepage
Download (94 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  
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  
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  
Libraries  -  JsHttpRequest 5.0
JsHttpRequest project is an easy-to-use cross-browser AJAX library with AJAX file uploading support and many other features. JsHttpRequest first appeared as cross-browser analogue of XMLHttpRequest, and then became a very useful instrument to...
122.88 KB  
Board Games  -  ChessShell 1.0
Extensive Java chess database libraries. Game database, position database.
7.51 MB  
Games  -  Chromboid 1.0
Sole proprietor of independent game development company. Core duties include game design and programming, as well as managerial duties. Developed and self-published game Tiny Hawk on PlayStation Network as a Minis title.
17.53 MB  
Board Games  -  Pawn 2.86
Free chess game for the PC with various games and boards. For people with levels from novice to expert.Apart from being free, Pawn gives all the typical game functions. Colour selection, undo move, save game, insert game, board position, thought...
6 KB  
Games  -  BattleDuel 1.7.110a
BattleDuel is a game for the Amiga. BattleDuel project was developed by Michael David, Marco Seine and me. Michael did all of the graphics, while Marco created all sound effects and the music. My task was to take all these ingredients...
12.24 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