Games:...lution(3pm)
β¨ Games::Solitaire::Verify::Solution β the vibe π
okay so bestie, this is a Perl module from the Games::Solitaire::Verify fam (it lives in the 3pm manual section, iykyk) and it does exactly one iconic thing: it verifies an entire solution of Freecell Solver β or of any solver that's built similar. That's the whole gig. Verification queen π
πΈ VERSION πΈ
version 0.2601 β she's current, she's fresh, no cap.
π SYNOPSIS π
here's the whole flow, copy it, love it, run it:
use Games::Solitaire::Verify::Solution;
my $input_filename = "freecell-24-solution.txt";
open (my $input_fh, "<", $input_filename)
or die "Cannot open file $!";
# Initialise a column
my $solution = Games::Solitaire::Verify::Solution->new(
{
input_fh => $input_fh,
variant => "freecell",
},
);
my $ret = $solution->verify();
close($input_fh);
if ($ret)
{
die $ret;
}
else
{
print "Solution is OK";
}
see how it opens the file, builds the verifier, calls verify(), closes the file, and then either dies with whatever $ret is or prints Solution is OK? that's the entire emotional arc of this module π
π¦ METHODS π¦
Games::Solitaire::Verify::Solution->new({variant => $variant, input_fh => $input_fh})
Constructs a brand new solution verifier, periodt. You hand it:
- the variant β
$variantβ and heads up, you can peepGames::Solitaire::Verify::VariantsMapfor the deets on those - the input file handle β
$input_fh
and she's ready to go π«Ά
β¨ special case alert: if$variantis"custom", then the constructor also requires a'variant_params'key, and that key should be a populatedGames::Solitaire::Verify::VariantParamsobject. no params, no party.
you can also pass a numeric 'max_rank' argument to make it lower than 13 β that's new in 0.1900, so if you're on something ancient, that's why it's acting up π
$solution->verify()
Traverse the solution verifying it. that's it, that's the method β she walks the whole thing and checks it, main character energy π
π SUPPORT π
Websites
these are the sites with more info about this module, and they may genuinely help you out. and obviously, on top of these, go off with your favorite search engine and find more resources β the internet is vast, bestie π
- MetaCPAN β a modern, open-source CPAN search engine, useful to view POD in HTML format. <https://metacpan.org/release/Games-Solitaire-Verify>
- RT: CPAN's Bug Tracker β the RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. <https://rt.cpan.org/Public/Dist/Display.html?Name=Games-Solitaire-Verify>
- CPANTS β the CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. <http://cpants.cpanauthors.org/dist/Games-Solitaire-Verify>
- CPAN Testers β the CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions. <http://www.cpantesters.org/distro/G/Games-Solitaire-Verify>
- CPAN Testers Matrix β the CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. <http://matrix.cpantesters.org/?dist=Games-Solitaire-Verify>
- CPAN Testers Dependencies β the CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. <http://deps.cpantesters.org/?module=Games::Solitaire::Verify>
Bugs / Feature Requests π
got a bug? got a feature request? pls pls pls report it β by email to "bug-games-solitaire-verify at rt.cpan.org", or through the web interface at <https://rt.cpan.org/Public/Bug/Report.html?Queue=Games-Solitaire-Verify>. and the best part? you'll be automatically notified of any progress on the request by the system. obsessed, honestly β¨
Source Code π»
the code is open to the world and available for you to hack on β please feel free to browse it and play with it, or whatever. and if you want to contribute patches, send a diff or prod the author to pull from the repository :)
<https://github.com/shlomif/fc-solve>
git clone git://github.com/shlomif/fc-solve.git
π AUTHOR π
Shlomi Fish <shlomif@cpan.org> β the legend behind all of this π
π BUGS π
please report any bugs or feature requests on the bugtracker website <https://github.com/shlomif/fc-solve/issues>
and when you submit a bug or a request, please include a test-file β or a patch to an existing test-file β that illustrates the bug or the desired feature. fr fr, it helps so much π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2008 by Shlomi Fish.
This is free software, licensed under:
The MIT (X11) License
and that's the whole page, bestie β documented by perl v5.42.0 on 2025-07-25, so go forth and verify some solutions, you absolute icon ππ
β¨
π¦ where this page comes from
- fedora 43: perl-Games-Solitaire-Verify 0.2601-3.fc43 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms