Integers Math Games
SYNOPSIS use Math::FresnelZone; use Math::FresnelZone qw(fresnel fresnelMi fresnelKm); The arguments are: 0 - distance in kilometers or miles (default is 1), 1 - frequency in GHz (defualt 2.4), 2 - set to true to specify that the distance you are inputting is in miles and that the...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (101): Math::FresnelZone Download |
Math::HashSum can sum a list of key-value pairs on a per-key basis. SYNOPSIS use Math::HashSum qw(hashsum); my %hash1 = (a=>.1, b=>.4); my %hash2 = (a=>.2, b=>.5); my %sum = hashsum(%hash1,%hash2); print "$sum{a}n"; # Prints .3 print "$sum{b}n"; # Prints .9 This module allows you to...
Platforms: *nix
License: Freeware | Size: 18.43 KB | Download (89): Math::HashSum Download |
Davids Perl Games project is a collection of ASCII graphics arcade style games written in Perl. These games are recreations of simple ASCII graphics games originally written in BASIC. They are ideal for use as Perl programming tutorials. Some of the first few games are PerlBlaster (defend...
Platforms: *nix
License: Freeware | Size: 64.51 KB | Download (106): Davids Perl Games Download |
Games::Tournament::RoundRobin is a Perl module for Round-Robin Tournament Schedule Pairings. SYNOPSIS $schedule = Games::Tournament::RoundRobin->new; $pairings = $schedule->indexesInRound($roundm); $round = $schedule->meeting($member1, [$member2, $member3]); ... Every member of a league...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (116): Games::Tournament::RoundRobin Download |
Math::CDF is a Perl module to generate probabilities and quantiles from several statistical probability functions. SYNOPSIS use Math::CDF; $prob = &Math::CDF::pnorm(1.96); if( not defined($z = &Math::CDF::qnorm(0.975)) ) { die "qnorm() failed"; } or use Math::CDF qw(:all); $prob =...
Platforms: *nix
License: Freeware | Size: 65.54 KB | Download (129): Math::CDF Download |
Math::Vec is a Object-Oriented Vector Math Methods in Perl. SYNOPSIS use Math::Vec; $v = Math::Vec->new(0,1,2); or use Math::Vec qw(NewVec); $v = NewVec(0,1,2); @res = $v->Cross([1,2.5,0]); $p = NewVec(@res); $q = $p->Dot([0,1,0]); or use Math::Vec qw(:terse); $v = V(0,1,2); $q...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (110): Math::Vec Download |
Math::Telephony::ErlangC is a Perl extension for Erlang C calculations. SYNOPSIS use Math::Telephony::ErlangC; # Evaluate probability that a service request will have to wait $wprob = wait_probability($traffic, $servers); # Probability that the wait time will be less than a fixed maximum...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (138): Math::Telephony::ErlangC Download |
Math::Telephony::ErlangB is a Perl extension for Erlang B calculations. SYNOPSIS use Math::Telephony::ErlangB qw( :all ); # Evaluate blocking probability $bprob = blocking_probability($traffic, $servers); $gos = gos($traffic, $servers); # Same result as above # Dimension minimum number...
Platforms: *nix
License: Freeware | Size: 24.58 KB | Download (259): Math::Telephony::ErlangB Download |
Games::WoW::PVP is a Perl module with the great new Games::WoW::PVP! SYNOPSIS Quick summary of what the module does. Perhaps a little code snippet. use Games::WoW::PVP; my $WoW = Games::WoW::PVP->new(); # looking for a character my %hash = $WoW->search_player( { country => EU, # EU...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (187): Games::WoW::PVP Download |
Math::BaseCalc is a Perl module that can convert numbers between various bases. SYNOPSIS use Math::BaseCalc; my $calc = new Math::BaseCalc(digits => [0,1]); #Binary my $bin_string = $calc->to_base(465); # Convert 465 to binary $calc->digits(oct); # Octal my $number =...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (93): Math::BaseCalc Download |
Games::Maze::SVG::Manual is a Perl module with manual for the Games::Maze::SVG modules. PURPOSE The Games::Maze::SVG module supports the creation of 2-dimensional mazes in an SVG format suitable for printing or playing interactively. This module use the Games::Maze module to perform the...
Platforms: *nix
License: Freeware | Size: 35.84 KB | Download (104): Games::Maze::SVG::Manual Download |
Games::PerlWar is a Perl variant of the classic Corewar game. This is a sparring program, similar to the programmed reality of the Matrix. It has the same basic rules, rules like gravity. What you must learn is that these rules are no different than the rules of a computer system. Some of...
Platforms: *nix
License: Freeware | Size: 31.74 KB | Download (87): Games::PerlWar Download |
Games::Chess Perl module represent chess positions and games. SYNOPSIS use Games::Chess qw(:constants); my $p = Games::Chess::Position->new; $p->at(0,0,BLACK,ROOK); $p->at(7,7,WHITE,ROOK); print $p->to_text; The Games::Chess package provides the class Games::Chess::Piece to represent...
Platforms: *nix
License: Freeware | Size: 49.15 KB | Download (114): Games::Chess Download |
Math::BaseArith is a Perl extension for mixed-base number representation (like APL encode/decode). SYNOPSIS use Math::BaseArith; encode( value, base_list ); decode( representation_list, base_list ); The inspiration for this module is a pair of functions in the APL programming language...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (96): Math::BaseArith Download |
Games::Battleship::Craft is a Battleship craft class. SYNOPSIS use Games::Battleship::Craft; my $craft = Games::Battleship::Craft->new( id => T, name => tug boat, points => 1, ) $points_remaining = $craft->hit; A Games::Battleship::Craft object represents the profile of a Battleship...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (268): Games::Battleship::Craft Download |
Games::Battleship - "You sunk my battleship!" SYNOPSIS use Games::Battleship; $g = Games::Battleship->new(qw( Gene Aeryk )); $g->add_player(Stephanie); $winner = $g->play(); print $winner->name(), " wins!n"; @player_objects = @{ $g->players }; $player_obj = $g->player(Professor...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (110): Games::Battleship Download |
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, "n", Player 2: , $gene->name, "n";...
Platforms: *nix
License: Freeware | Size: 11.26 KB | Download (113): Games::Battleship::Player Download |
Math::Pari is a Perl interface to PARI. SYNOPSIS use Math::Pari; $a = PARI 2; print $a**10000; or use Math::Pari qw(Mod); $a = Mod(3,5); print $a**10000; This package is a Perl interface to famous library PARI for numerical/scientific/number-theoretic calculations. It allows use of...
Platforms: *nix
License: Freeware | Size: 112.64 KB | Download (105): Math::Pari Download |
SYNOPSIS use Math::MatrixReal; use Math::MatrixReal::Aug; These are certain extra methods for Math::MatrixReal, in the tradition of Math::MatrixReal::Ext1; $matrix1->augmentright($matrix2); Creates a new matrix of the form [$matrix1 $matrix2]. $matrix1 and $matrix2 must have the same...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (107): Math::MatrixReal::Aug Download |
Math::Random::MT::Auto is a Perl module for auto-seeded Mersenne Twister PRNGs. SYNOPSIS use strict; use warnings; use Math::Random::MT::Auto qw(rand irand shuffle gaussian), /dev/urandom => 256, random_org; # Functional interface my $die_roll = 1 + int(rand(6)); my $coin_flip =...
Platforms: *nix
License: Freeware | Size: 122.88 KB | Download (98): Math::Random::MT::Auto Download |