games mastermind 0.03
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2318
Games::Mastermind 0.03
Games::Mastermind is a simple framework for MasterMind games. more>>
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 available at all times
$history = $mm->history();
$last_turn = $mm->history()->[-1];
# reset the game
$mm->reset();
Games::Mastermind is a very simple framework for running Mastermind games.
<<lessSYNOPSIS
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 available at all times
$history = $mm->history();
$last_turn = $mm->history()->[-1];
# reset the game
$mm->reset();
Games::Mastermind is a very simple framework for running Mastermind games.
Download (0.014MB)
Added: 2007-01-04 License: Perl Artistic License Price:
1024 downloads
GNOME Mastermind 0.3
GNOME Mastermind is a Mastermind clone for GNOME Desktop. more>>
GNOME Mastermind is a Mastermind clone for GNOME Desktop.
GNOME Mastermind is a simple mastermind-like game that ive written mainly for fun and with learning purposes in spare time. Now it became quite stable and i decided to distribute it. Try it and give me some feedback.
<<lessGNOME Mastermind is a simple mastermind-like game that ive written mainly for fun and with learning purposes in spare time. Now it became quite stable and i decided to distribute it. Try it and give me some feedback.
Download (0.54MB)
Added: 2007-05-31 License: GPL (GNU General Public License) Price:
877 downloads
Games::Mastermind::Solver 0.02
Games::Mastermind::Solver is a Master Mind puzzle solver. more>>
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( , @{$player->game->code} ), "nn";
until( $player->won || ++$try > 10 ) {
my( $win, $guess, $result ) = $player->move;
print join( , @$guess ),
,
B x $result->[0], W x $result->[1],
"n";
}
Games::Mastermind::Solver is a base class for Master Mind solvers.
<<lessSYNOPSIS
# 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( , @{$player->game->code} ), "nn";
until( $player->won || ++$try > 10 ) {
my( $win, $guess, $result ) = $player->move;
print join( , @$guess ),
,
B x $result->[0], W x $result->[1],
"n";
}
Games::Mastermind::Solver is a base class for Master Mind solvers.
Download (0.004MB)
Added: 2007-01-03 License: Perl Artistic License Price:
1040 downloads
KMasterMind 2.2
KMasterMind is a mastermind game designed for K Desktop Environment. more>>
KMasterMind is a mastermind game designed for K Desktop Environment. KMasterMind game is written using Qt & KDE libraries.
KMasterMind is an intuitive game using the drag and drop mechanism for placing the pieces on site.
Enhancements:
- I added numerical labels to locate the position of the pieces and the ticks
- Tooltips for the toolbar buttons with the useful shortcuts
<<lessKMasterMind is an intuitive game using the drag and drop mechanism for placing the pieces on site.
Enhancements:
- I added numerical labels to locate the position of the pieces and the ticks
- Tooltips for the toolbar buttons with the useful shortcuts
Download (0.59MB)
Added: 2006-09-28 License: GPL (GNU General Public License) Price:
1121 downloads
Games::Mastermind::Solver::BruteForce 0.02
Games::Mastermind::Solver::BruteForce is a Master Mind puzzle solver. more>>
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 of possible solutions given the knowledge the player has accumulated.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
<<lessSYNOPSIS
# 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 of possible solutions given the knowledge the player has accumulated.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Download (0.004MB)
Added: 2007-01-04 License: Perl Artistic License Price:
1041 downloads
Acme::Playmate 0.03
Acme::Playmate is a Perl module to consult the playboy playmate directory for playmate information. more>>
Acme::Playmate is a Perl module to consult the playboy playmate directory for playmate information.
SYNOPSIS
use Acme::Playmate;
my $playmate = new Acme::Playmate("2003", "04");
print "Details for playmate " . $playmate->{ "Name" } . "n";
print "Birthdate" . $playmate->{ "BirthDate" } . "n";
print "Birthplace" . $playmate->{ "BirthPlace" } . "n";
print "Bust" . $playmate->{ "Bust" } . "n";
print "Waist" . $playmate->{ "Waist" } . "n";
print "Hips" . $playmate->{ "Hips" } . "n";
print "Height" . $playmate->{ "Height" } . "n";
print "Weight" . $playmate->{ "Weight" } . "n";
<<lessSYNOPSIS
use Acme::Playmate;
my $playmate = new Acme::Playmate("2003", "04");
print "Details for playmate " . $playmate->{ "Name" } . "n";
print "Birthdate" . $playmate->{ "BirthDate" } . "n";
print "Birthplace" . $playmate->{ "BirthPlace" } . "n";
print "Bust" . $playmate->{ "Bust" } . "n";
print "Waist" . $playmate->{ "Waist" } . "n";
print "Hips" . $playmate->{ "Hips" } . "n";
print "Height" . $playmate->{ "Height" } . "n";
print "Weight" . $playmate->{ "Weight" } . "n";
Download (0.003MB)
Added: 2007-03-19 License: Perl Artistic License Price:
950 downloads
Games::Score 0.02
Games::Score is a Perl module to keep track of score in games . more>>
Games::Score is a Perl module to keep track of score in games .
SYNOPSIS
use Games::Score;
# these three values are the default ones, by the way
Games::Score->default_score(0);
Games::Score->default_step(1);
Games::Score->step_method(inc);
# start two players
my $player1 = Games::Score->new();
my $player2 = Games::Score->new();
# set a winning condition
Games::Score->victory_is( sub { $_[0] >= 20 } );
# and something to do if it is achieved
Games::Score->on_victory_do( sub { print "Won!" } );
# give points to the players
$player1->add(2);
$player2->step();
# look at section FUNCTIONS for more functionalities, such as
Games::Score->invalidate_if( sub { $_[0] > 20 } );
Games::Score can be use to keep track of several players points in a game, regardless of the starting amount of points, winning and/or losing conditions, etc.
It provides several useful methods so that the user doesnt have to keep testing values to see if theyre valid or if the player condition has changed.
<<lessSYNOPSIS
use Games::Score;
# these three values are the default ones, by the way
Games::Score->default_score(0);
Games::Score->default_step(1);
Games::Score->step_method(inc);
# start two players
my $player1 = Games::Score->new();
my $player2 = Games::Score->new();
# set a winning condition
Games::Score->victory_is( sub { $_[0] >= 20 } );
# and something to do if it is achieved
Games::Score->on_victory_do( sub { print "Won!" } );
# give points to the players
$player1->add(2);
$player2->step();
# look at section FUNCTIONS for more functionalities, such as
Games::Score->invalidate_if( sub { $_[0] > 20 } );
Games::Score can be use to keep track of several players points in a game, regardless of the starting amount of points, winning and/or losing conditions, etc.
It provides several useful methods so that the user doesnt have to keep testing values to see if theyre valid or if the player condition has changed.
Download (0.007MB)
Added: 2006-12-27 License: Perl Artistic License Price:
1031 downloads
Games::Baseball::Scorecard 0.03
Games::Baseball::Scorecard is a Perl module. more>>
Games::Baseball::Scorecard is a Perl module.
SYNOPSIS
my $score = Games::Baseball::Scorecard->new($dir, $name, {
color => [ .4, .4, .4 ], # grey
fonts => [ # Myriad Condensed regular/bold
[ myriadrcrrl => 9 ],
[ myriadrcbrl => 14 ],
[ myriadrcrrl => 14 ],
[ myriadrcbrl => 22 ],
],
});
# fill initial scorecard out
$s->init({
scorer => Pudge,
date => 2004-10-24, 20:05-23:25,
at => Fenway Park, Boston,
temp => 48 clear,
wind => 7 to RF,
att => 35,001,
home => {
team => Boston Red Sox,
starter => 38, # jersey number
lineup => [
# [ num, position ],
[ 18, 8 ], # Damon, starting at CF
# ...
],
roster => {
# num => name
18 => Damon, Johnny,
38 => Schilling, Curt,
# ...
},
},
away => {
team => St. Louis Cardinals,
# ...
}
});
# draw the game
$s->inn; # new inning / end of last inning
$s->ab; # new at-bat
# works to full count
$s->pitches(qw(s b s b b f));
# struck out looking
$s->out(!K);
$s->ab;
# home run to left-center
$s->hit(4, lc);
# calculate/draw stats
$self->totals;
# finish the job
$s->generate;
# open final PDF
$s->pdfopen;
Games::Baseball::Scorecard is a frontend to a PDF scorecard written in Metapost by Christopher Swingley (http://www.frontier.iarc.uaf.edu/~cswingle/baseball/scorecards.php). That scorecard is drawn out, and has a nice API for actually drawing out the elements of the game: all the ball, strikes, outs, etc.
Being Metapost, it is laborious to do all this. So this module provides a nice frontend, that also keeps track of balls and strikes and hits and runs and outs and more, making input of the game quite simple and efficient.
This module does not include the entire API, but most of it. Patches and ideas welcome. Feel free to call output directly if you want to generate Metapost on your own, or to modify the $SCORECARD variable (which contains the base Metapost code), or the $TEX (single page) and $TEXD (duplex) TeX files.
I wont give a tutorial on scoring baseball games, or on Metapost, below. Seek other resources (Swingleys URL above has a nice tutorial on scoring baseball games, using the scorecard he designed, which is what were using here).
<<lessSYNOPSIS
my $score = Games::Baseball::Scorecard->new($dir, $name, {
color => [ .4, .4, .4 ], # grey
fonts => [ # Myriad Condensed regular/bold
[ myriadrcrrl => 9 ],
[ myriadrcbrl => 14 ],
[ myriadrcrrl => 14 ],
[ myriadrcbrl => 22 ],
],
});
# fill initial scorecard out
$s->init({
scorer => Pudge,
date => 2004-10-24, 20:05-23:25,
at => Fenway Park, Boston,
temp => 48 clear,
wind => 7 to RF,
att => 35,001,
home => {
team => Boston Red Sox,
starter => 38, # jersey number
lineup => [
# [ num, position ],
[ 18, 8 ], # Damon, starting at CF
# ...
],
roster => {
# num => name
18 => Damon, Johnny,
38 => Schilling, Curt,
# ...
},
},
away => {
team => St. Louis Cardinals,
# ...
}
});
# draw the game
$s->inn; # new inning / end of last inning
$s->ab; # new at-bat
# works to full count
$s->pitches(qw(s b s b b f));
# struck out looking
$s->out(!K);
$s->ab;
# home run to left-center
$s->hit(4, lc);
# calculate/draw stats
$self->totals;
# finish the job
$s->generate;
# open final PDF
$s->pdfopen;
Games::Baseball::Scorecard is a frontend to a PDF scorecard written in Metapost by Christopher Swingley (http://www.frontier.iarc.uaf.edu/~cswingle/baseball/scorecards.php). That scorecard is drawn out, and has a nice API for actually drawing out the elements of the game: all the ball, strikes, outs, etc.
Being Metapost, it is laborious to do all this. So this module provides a nice frontend, that also keeps track of balls and strikes and hits and runs and outs and more, making input of the game quite simple and efficient.
This module does not include the entire API, but most of it. Patches and ideas welcome. Feel free to call output directly if you want to generate Metapost on your own, or to modify the $SCORECARD variable (which contains the base Metapost code), or the $TEX (single page) and $TEXD (duplex) TeX files.
I wont give a tutorial on scoring baseball games, or on Metapost, below. Seek other resources (Swingleys URL above has a nice tutorial on scoring baseball games, using the scorecard he designed, which is what were using here).
Download (0.34MB)
Added: 2006-07-31 License: GPL (GNU General Public License) Price:
710 downloads
Tk::Menustrip 0.03
Tk::Menustrip is another menubar with help menu support, etc. more>>
Tk::Menustrip is another menubar with help menu support, etc.
SYNOPSIS
use Tk::Menustrip;
use Tk;
my $MainWindow = MainWindow->new();
my $l_Menubar = $this->Menustrip();
$l_Menubar->MenuLabel (File),
$l_Menubar->MenuEntry (File, Save, sub {Save();});
$l_Menubar->MenuSeparator (File);
$l_Menubar->MenuEntry (File, Exit, sub {Exit();});
$l_Menubar->MenuLabel (Help, -right);
$l_Menubar->MenuEntry (Help, About...);
$l_Menubar->MenuSeparator (Help);
$l_Menubar->MenuEntry (Help, Help On...);
$l_Menubar->pack(-fill => x);
Tk::MainLoop;
<<lessSYNOPSIS
use Tk::Menustrip;
use Tk;
my $MainWindow = MainWindow->new();
my $l_Menubar = $this->Menustrip();
$l_Menubar->MenuLabel (File),
$l_Menubar->MenuEntry (File, Save, sub {Save();});
$l_Menubar->MenuSeparator (File);
$l_Menubar->MenuEntry (File, Exit, sub {Exit();});
$l_Menubar->MenuLabel (Help, -right);
$l_Menubar->MenuEntry (Help, About...);
$l_Menubar->MenuSeparator (Help);
$l_Menubar->MenuEntry (Help, Help On...);
$l_Menubar->pack(-fill => x);
Tk::MainLoop;
Download (0.050MB)
Added: 2006-11-01 License: Perl Artistic License Price:
1087 downloads
Games::Bingo::Card 0.13
Games::Bingo::Card is a helper class for Games::Bingo. more>>
Games::Bingo::Card is a helper class for Games::Bingo.
SYNOPSIS
use Games::Bingo::Card;
my $b = Games::Bingo-E new(90);
my $card = Games::Bingo::Card-E new($b);
my $bingo = Games::Bingo-E new(90);
$card-E validate($bingo);
use Games::Bingo::Print::Card;
my $p = Games::Bingo::Print::Card-E new();
$p-E populate();
The Games::Bingo::Card class suits the simple purpose of being able to generate bingo cards and validating whether they are valid in during a game where a player indicate victory.
It is also used by Games::Bingo::Print to hold the generated bingo cards before they are printed.
<<lessSYNOPSIS
use Games::Bingo::Card;
my $b = Games::Bingo-E new(90);
my $card = Games::Bingo::Card-E new($b);
my $bingo = Games::Bingo-E new(90);
$card-E validate($bingo);
use Games::Bingo::Print::Card;
my $p = Games::Bingo::Print::Card-E new();
$p-E populate();
The Games::Bingo::Card class suits the simple purpose of being able to generate bingo cards and validating whether they are valid in during a game where a player indicate victory.
It is also used by Games::Bingo::Print to hold the generated bingo cards before they are printed.
Download (0.020MB)
Added: 2007-01-04 License: Perl Artistic License Price:
1024 downloads
Acme::Tests 0.03
Acme::Tests is a Perl module to see how much do you know. more>>
Acme::Tests is a Perl module to see how much do you know.
SYNOPSIS
perl Makefile.PL
make test
This module is a "test software", it has tests in the software rather then software tests. Upon installation, you are reqruied to answered several question, and the installation would be only successful if all you pass them all.
<<lessSYNOPSIS
perl Makefile.PL
make test
This module is a "test software", it has tests in the software rather then software tests. Upon installation, you are reqruied to answered several question, and the installation would be only successful if all you pass them all.
Download (0.011MB)
Added: 2007-03-07 License: GPL (GNU General Public License) Price:
961 downloads
Cache-Memcached-Tie 0.03
Cache-Memcached-Tie is a tie for Cache::Memcached. more>>
Cache-Memcached-Tie is a tie for Cache::Memcached.
Installation:
To install this module type the following:
perl Makefile.PL
make
make test
make install
<<lessInstallation:
To install this module type the following:
perl Makefile.PL
make
make test
make install
Download (0.015MB)
Added: 2006-11-11 License: Perl Artistic License Price:
1077 downloads
App::Manager 0.03
App::Manager is a Perl module for installing, managing and uninstalling software packages. more>>
App::Manager is a Perl module for installing, managing and uninstalling software packages.
SYNOPSIS
use App::Manager; # use appman instead
<<lessSYNOPSIS
use App::Manager; # use appman instead
Download (0.017MB)
Added: 2007-01-11 License: Perl Artistic License Price:
1023 downloads
Games::GuessWord 0.15
Games::GuessWord is a guess the letters in a word (ie Hangman). more>>
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 = $g->guesses;
$g->guess("t");
# ...
if ($g->won) {
print "You won!n";
$g->new_word;
}
This module is a simple wrapper around a word guessing game. You have to guess the word by guessing letters in the word, and is otherwise known as Hangman.
<<lessSYNOPSIS
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 = $g->guesses;
$g->guess("t");
# ...
if ($g->won) {
print "You won!n";
$g->new_word;
}
This module is a simple wrapper around a word guessing game. You have to guess the word by guessing letters in the word, and is otherwise known as Hangman.
Download (0.004MB)
Added: 2007-01-06 License: Perl Artistic License Price:
1024 downloads
Siren 0.03
Siren is a music player for GNOME with an extremely minimalist interface. more>>
Siren is a music player for GNOME with an extremely minimalist interface. It is written in Perl and uses the GTK2-Perl libraries, and GStreamer.
<<less Download (0.015MB)
Added: 2005-08-08 License: GPL (GNU General Public License) Price:
1547 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above games mastermind 0.03 search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed