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

Volity::WinnersList 0.6.5

  Date Added: January 24, 2010  |  Visits: 510

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
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  -  PyQStat 1.0
PyQStat project is a Python wrapper around QStat, the realtime game server status tool. PyQStat invokes QStat via os.popen and parses its XML output mode. Although primarily intended as an importable module for integrating QStat functionality...
13.31 KB  
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  
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