Games Normal
Games::GuessWord is a guess the letters in a word (ie Hangman). SYNOPSIS use Games::GuessWord; my $g = Games::GuessWord->new(file => "/path/to/wordlist"); print "Score: " . $g->score . "n"; print "Chances: " . $g->chances . "n"; print "Answer: " . $g->answer . "n"; my @guesses =...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (108): Games::GuessWord Download |
Games::Mastermind::Solver::BruteForce is a Master Mind puzzle solver. SYNOPSIS # See Games::Mastermind::Solver Games::Mastermind::Solver::BruteForce uses the classical brute-force algorithm for solving Master Mind puzzles. METHODS remaining $number = $player->remaining; The number...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (214): Games::Mastermind::Solver::BruteForce Download |
Games::Mastermind::Solver is a Master Mind puzzle solver. SYNOPSIS # a trivial Mastermind solver use Games::Mastermind; use Games::Mastermind::Solver::BruteForce; my $player = Games::Mastermind::Solver::BruteForce ->new( Games::Mastermind->new ); my $try; print join( ,...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (191): Games::Mastermind::Solver Download |
Games::Blackjack is a Perl module with Blackjack Utility Classes. SYNOPSIS use Games::Blackjack; # Create new shoe of cards my $shoe = Games::Blackjack::Shoe->new(nof_decks => 4); # Create two hands, player/dealer my $player = Games::Blackjack::Hand->new(shoe => $shoe); my $dealer =...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (102): Games::Blackjack Download |
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 |
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 |
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 |
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 |
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 |
Games::Alak is a simple game-tree implementation of a gomoku-like game. SYNOPSIS % perl -MGames::Alak -e Games::Alak::play ...Or just run Alak.pm as if it were a program... ...Program responds with output, and a prompt: Lookahead set to 3. I am X, you are O. Enter h for help X moves...
Platforms: *nix
License: Freeware | Size: 9.22 KB | Download (120): Games::Alak Download |
Games::LMSolve::Base is a base class for puzzle solvers. SYNOPSIS package MyPuzzle::Solver; use Games::LMSolve::Base; @ISA = qw(Games::LMSolve::Base); # Override these methods: sub input_board { ... } sub pack_state { ... } sub unpack_state { ... } sub display_state { ... } sub...
Platforms: *nix
License: Freeware | Size: 21.5 KB | Download (96): Games::LMSolve::Base Download |
Games::Goban is a board for playing go, renju, othello, etc. SYNOPSIS use Games::Goban; my $board = new Games::Goban ( size => 19, game => "go", white => "Seigen, Go", black => "Minoru, Kitani", referee => &Games::Goban::Rules::Go, ); $board->move("pd"); $board->move("dd"); print...
Platforms: *nix
License: Freeware | Size: 15.36 KB | Download (170): Games::Goban Download |
Games::AlphaBeta::Reversi is a Reversi position class for use with Games::AlphaBeta. SYNOPSIS package My::Reversi; use base qw(Games::AlphaBeta::Reversi); # implement drawing routine sub draw { ... } package main; use My::Reversi; use Games::AlphaBeta; my ($p, $g); $p =...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (132): Games::AlphaBeta::Reversi Download |
Games::AlphaBeta::Position is a base Position class for use with Games::AlphaBeta. SYNOPSIS package My::GamePos; use base qw(Games::AlphaBeta::Position); sub apply { ... } sub endpos { ... } # optional sub evaluate { ... } sub findmoves { ... } package main; my $pos =...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (97): Games::AlphaBeta::Position Download |
Games::Sequential::Position is a base Position class for use with Games::Sequential. SYNOPSIS package My::GamePos; use base Games::Sequential::Position; sub init { ... } # setup initial state sub apply { ... } package main; my $pos = My::GamePos->new; my $game =...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (96): Games::Sequential::Position Download |