1Games::Solitaire::VerifUys:e:rSoClounttiroinb(u3t)ed PerGlamDeosc:u:mSeonltiattaiiorne::Verify::Solution(3)
2
3
4

NAME

6       Games::Solitaire::Verify::Solution - verify an entire solution of
7       Freecell Solver (or a similar solver)
8

VERSION

10       version 0.2403
11

SYNOPSIS

13           use Games::Solitaire::Verify::Solution;
14
15           my $input_filename = "freecell-24-solution.txt";
16
17           open (my $input_fh, "<", $input_filename)
18               or die "Cannot open file $!";
19
20           # Initialise a column
21           my $solution = Games::Solitaire::Verify::Solution->new(
22               {
23                   input_fh => $input_fh,
24                   variant => "freecell",
25               },
26           );
27
28           my $ret = $solution->verify();
29
30           close($input_fh);
31
32           if ($ret)
33           {
34               die $ret;
35           }
36           else
37           {
38               print "Solution is OK";
39           }
40

METHODS

42   Games::Solitaire::Verify::Solution->new({variant => $variant, input_fh =>
43       $input_fh})
44       Constructs a new solution verifier with the variant $variant (see
45       Games::Solitaire::Verify::VariantsMap ), and the input file handle
46       $input_fh.
47
48       If $variant is "custom", then the constructor also requires a
49       'variant_params' key which should be a populated
50       Games::Solitaire::Verify::VariantParams object.
51
52       One can specify a numeric 'max_rank' argument to be lower than 13 (new
53       in 0.1900).
54
55   $solution->verify()
56       Traverse the solution verifying it.
57

SUPPORT

59   Websites
60       The following websites have more information about this module, and may
61       be of help to you. As always, in addition to those websites please use
62       your favorite search engine to discover more resources.
63
64       •   MetaCPAN
65
66           A modern, open-source CPAN search engine, useful to view POD in
67           HTML format.
68
69           <https://metacpan.org/release/Games-Solitaire-Verify>
70
71       •   RT: CPAN's Bug Tracker
72
73           The RT ( Request Tracker ) website is the default bug/issue
74           tracking system for CPAN.
75
76           <https://rt.cpan.org/Public/Dist/Display.html?Name=Games-Solitaire-Verify>
77
78       •   CPANTS
79
80           The CPANTS is a website that analyzes the Kwalitee ( code metrics )
81           of a distribution.
82
83           <http://cpants.cpanauthors.org/dist/Games-Solitaire-Verify>
84
85       •   CPAN Testers
86
87           The CPAN Testers is a network of smoke testers who run automated
88           tests on uploaded CPAN distributions.
89
90           <http://www.cpantesters.org/distro/G/Games-Solitaire-Verify>
91
92       •   CPAN Testers Matrix
93
94           The CPAN Testers Matrix is a website that provides a visual
95           overview of the test results for a distribution on various
96           Perls/platforms.
97
98           <http://matrix.cpantesters.org/?dist=Games-Solitaire-Verify>
99
100       •   CPAN Testers Dependencies
101
102           The CPAN Testers Dependencies is a website that shows a chart of
103           the test results of all dependencies for a distribution.
104
105           <http://deps.cpantesters.org/?module=Games::Solitaire::Verify>
106
107   Bugs / Feature Requests
108       Please report any bugs or feature requests by email to
109       "bug-games-solitaire-verify at rt.cpan.org", or through the web
110       interface at
111       <https://rt.cpan.org/Public/Bug/Report.html?Queue=Games-Solitaire-Verify>.
112       You will be automatically notified of any progress on the request by
113       the system.
114
115   Source Code
116       The code is open to the world, and available for you to hack on. Please
117       feel free to browse it and play with it, or whatever. If you want to
118       contribute patches, please send me a diff or prod me to pull from your
119       repository :)
120
121       <https://github.com/shlomif/fc-solve>
122
123         git clone git://github.com/shlomif/fc-solve.git
124

AUTHOR

126       Shlomi Fish <shlomif@cpan.org>
127

BUGS

129       Please report any bugs or feature requests on the bugtracker website
130       <https://github.com/shlomif/fc-solve/issues>
131
132       When submitting a bug or request, please include a test-file or a patch
133       to an existing test-file that illustrates the bug or desired feature.
134
136       This software is Copyright (c) 2008 by Shlomi Fish.
137
138       This is free software, licensed under:
139
140         The MIT (X11) License
141
142
143
144perl v5.34.0                      2021-07-G2a2mes::Solitaire::Verify::Solution(3)
Impressum