NAME
Games::ABC_Path::Generator - a generator for ABC Path puzzle games.
VERSION
Version 0.2.0
SYNOPSIS
use Games::ABC_Path::Generator;
my $gen = Games::ABC_Path::Generator->new({seed => 1});
# Returns a Games::ABC_Path::Generator::RiddleObj object.
my $riddle = $gen->calc_riddle();
DESCRIPTION
ABC Path puzzle games are puzzle games where one is given a 5*5 grid which should contain a consecutive path of the letters from 'A' to 'Y' (with vertical, horizontal, diagonal, or anti-diagonal steps). The position of the letter 'A' is given, and two letters are given for each of the columns, rows, main diagonal and main anti-diagonal, which can appear anywhere there.
ABC Path can be played online at http://www.brainbashers.com/abcpath.asp .
This package is a generator for ABC Path games, and it generates a different layout with different clues for every random number generator seed.
SUBROUTINES/METHODS
my $gen = Games::ABC_Path::Generator->new({seed => $seed});
Initialised a new generator with the random number generator seed $seed .
$gen->calc_final_layout()
Calculates the final, solved, layout of the board based on the current random seed.
Returns the layout as a Games::ABC_Path::Generator::FinalLayoutObj object.
$gen->calc_riddle()
Calculates the riddle (final state + initial hints) and returns it as an object.
AUTHOR
Shlomi Fish, http://www.shlomifish.org/ .
BUGS
Please report any bugs or feature requests to bug-games-abc_path-generator at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-ABC_Path-Generator. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Games::ABC_Path::Generator
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Games-ABC_Path-Generator
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
SEE ALSO
Games::ABC_Path::Solver - a solver for ABC Path games which this generator uses.
http://www.shlomifish.org/open-source/projects/japanese-puzzle-games/abc-path/ - the homepage of Shlomi Fish's ABC Path work.
http://www.brainbashers.com/abcpath.asp - play ABC Path online on brainbashers.com .
http://www.janko.at/ - Otto Janko, the creator of ABC Path.
ACKNOWLEDGEMENTS
Otto Janko (http://www.janko.at/) for creating ABC Path.
http://www.brainbashers.com/ for introducing them to me.
Altreus ( http://search.cpan.org/~altreus/ ) for suggesting an improvement to the documentation.
LICENSE AND COPYRIGHT
Copyright 2011 Shlomi Fish.
This program is distributed under the MIT (X11) License: http://www.opensource.org/licenses/mit-license.php
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.