Cool Math Games
Games::ScottAdams::Tutorial is a Perl module with the Scott Adams Adventure Compiler Tutorial. INTRODUCTION This document walks you through the process of creating a small but complete and playable game with six rooms, seven items including a single treasure, and a couple of puzzles. It...
Platforms: *nix
License: Freeware | Size: 49.15 KB | Download (127): Games::ScottAdams::Tutorial Download |
Games::ScottAdams::Manual is the Scott Adams Adventure Compiler Reference Manual. SYNOPSIS # foo.sa - definition file for Scott Adams adventure "foo" %room swamp dismal swamp %exit n meadow %exit e edge %exit w grove %item mud Evil smelling mud %getdrop mud %action take mud here...
Platforms: *nix
License: Freeware | Size: 49.15 KB | Download (100): Games::ScottAdams::Manual Download |
SYNOPSIS # automatical computer-vus-computer play script use Games::Checkers::Constants; use Games::Checkers::Board; use Games::Checkers::BoardTree; my $board = new Games::Checkers::Board; my $color = White; my $numMoves = 0; print $board->dump; while ($board->canColorMove($color)) {...
Platforms: *nix
License: Freeware | Size: 286.72 KB | Download (124): Games::Checkers Download |
Java Games project is a collection of simple games that are compiled into Java applets and meant to be played online in a Web browser. Currently the collection contains four games: XO World (similar to tic-tac-toe, but with lines of 5 on a 10x10 board); 100 Mack (guess the random combination of...
Platforms: *nix
License: Freeware | Size: 133.12 KB | Download (596): Java Games Download |
Games::Object is a Perl module to provide a base class for game objects. SYNOPSIS package MyGameObject; use Games::Object; use vars qw(@ISA); @ISA = qw(Games::Object); sub new { # Create object my $proto = shift; my $class = ref($proto) || $proto; my $self = $class->SUPER::new(@_);...
Platforms: *nix
License: Freeware | Size: 84.99 KB | Download (89): Games::Object Download |
Games::Go::SGF2misc::SVG is a Perl package to simplify SGF game rendering using Image::LibrSVG. SYNOPSIS use Games::Go::SGF2misc::SVG; my $image = new Games::Go::SGF2misc::SVG(imagesize => 3in, boardsize => 19, gobanColor=> white ); $image->drawGoban(); $image->placeStone(b,cd);...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (106): Games::Go::SGF2misc::SVG Download |
RPN is a Perl extension for Reverse Polish Math Expression Evaluation. SYNOPSIS use Math::RPN; $value=rpn(expr...); @array=rpn(expr...); expr... is one or more scalars or lists of scalars which contain RPN expressions. An RPN expression is a series of numbers and/or operators separated...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (93): Math::RPN Download |
Games::OpenGL::Font::2D module can load/render 2D colored bitmap fonts via OpenGL. SYNOPSIS use Games::OpenGL::Font::2D; my $font = Games::OpenGL::Font::2D->new( file => font.bmp ); use SDL::App::FPS; my $app = SDL::App::FPS->new( ... ); # dont forget to change these on resize...
Platforms: *nix
License: Freeware | Size: 22.53 KB | Download (171): Games::OpenGL::Font::2D Download |
Math::Roman contains arbitrary sized Roman numbers and conversion from and to Arabic. SYNOPSIS use Math::Roman qw(roman); $a = new Math::Roman MCMLXXIII; # 1973 $b = roman(MCMLXI); # 1961 print $a - $b,"n"; # prints XII $d = Math::Roman->bzero(); # $d++; # I $d += 1998; # MCMXCIX $d...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (151): Math::Roman Download |
Math::BigInt::Calc is a pure Perl module to support Math::BigInt. SYNOPSIS Provides support for big integer calculations. Not intended to be used by other modules. Other modules which sport the same functions can also be used to support Math::BigInt, like Math::BigInt::GMP or...
Platforms: *nix
License: Freeware | Size: 194.56 KB | Download (102): Math::BigInt::Calc Download |
Games::Console Perl module provide a 2D quake style in-game console. SYNOPSIS use Games::Console; my $console = Games::Console->new( font => $font_object, background_color => [ 1,1,0], background_alpha => 0.4, text_color => [ 1,1,1 ], text_alpha => 1, speed => 50, # in percent per...
Platforms: *nix
License: Freeware | Size: 21.5 KB | Download (97): Games::Console Download |
Math::BigInt is an arbitrary size integer/float math package. SYNOPSIS use Math::BigInt; # or make it faster: install (optional) Math::BigInt::GMP # and always use (it will fall back to pure Perl if the # GMP library is not installed): # will warn if Math::BigInt::GMP cannot be found...
Platforms: *nix
License: Freeware | Size: 194.56 KB | Download (89): Math::BigInt Download |
Games::Dice is a Perl module that can be used to simulate dice rolls. SYNOPSIS use Games::Dice roll; $strength = roll 3d6+1; use Games::Dice roll_array; @rolls = roll_array 4d8; Games::Dice simulates die rolls. It uses a function-oriented (not object-oriented) interface. No functions...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (99): Games::Dice Download |
Math::Algebra::Symbols is a Symbolic Algebra in Pure Perl. SYNOPSIS Example symbols.pl #!perl -w -I.. use Math::Algebra::Symbols hyper=>1; use Test::Simple tests=>5; ($n, $x, $y) = symbols(qw(n x y)); $a += ($x**8 - 1)/($x-1); $b += sin($x)**2 + cos($x)**2; $c += (sin($n*$x) +...
Platforms: *nix
License: Freeware | Size: 102.4 KB | Download (162): Math::Algebra::Symbols Download |
Math::Zap::Triangle2 - triangles in 2D space. Synopsis Example t/triangle2.t #_ Triangle ___________________________________________________________ # Test 2d triangles # philiprbrenan@yahoo.com, 2004, Perl License #______________________________________________________________________...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (95): Math::Zap::Triangle2 Download |
Math::Zap::Triangle module can build triangles in 3D space. Synopsis Example t/triangle.t #_ Triangle ___________________________________________________________ # Test 3d triangles # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (115): Math::Zap::Triangle Download |
Math::Zap::Matrix is a Perl module for 3*3 matrix manipulation. Synopsis Example t/matrix.t #_ Matrix _____________________________________________________________ # Test 3*3 matrices # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (189): Math::Zap::Matrix Download |
Math::Zap::Matrix2 is a Perl module for 2*2 matrix manipulation. Synopsis Example t/matrix2.t #_ Matrix _____________________________________________________________ # Test 2*2 matrices # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (96): Math::Zap::Matrix2 Download |
Math::Zap::Rectangle is a Perl module that generates rectangles in 3d space. Synopsis Example t/rectangle.t #_ Rectangle __________________________________________________________ # Test 3d rectangles # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (98): Math::Zap::Rectangle Download |
Games::Mastermind is a simple framework for MasterMind games. SYNOPSIS use Games::Mastermind; # the classic game $mm = Games::Mastermind->new; # make a guess $marks = $game->play(qw( Y C W R )); # results print "You win!n" if $marks->[0] == $mm->holes(); # the game history is...
Platforms: *nix
License: Freeware | Size: 14.34 KB | Download (105): Games::Mastermind Download |