1Games::Solitaire::VerifUys:e:rSoClounttiroinb(u3t)ed PerGlamDeosc:u:mSeonltiattaiiorne::Verify::Solution(3)
2
3
4
6 Games::Solitaire::Verify::Solution - verify an entire solution of
7 Freecell Solver (or a similar solve)
8
10 version 0.1900
11
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
42 version 0.1900
43
45 Games::Solitaire::Verify::Solution->new({variant => $variant, input_fh =>
46 $input_fh})
47 Constructs a new solution verifier with the variant $variant (see
48 Games::Solitaire::Verify::VariantsMap ), and the input file handle
49 $input_fh.
50
51 If $variant is "custom", then the constructor also requires a
52 'variant_params' key which should be a populated
53 Games::Solitaire::Verify::VariantParams object.
54
55 One can specify a numeric 'max_rank' argument to be lower than 13 (new
56 in 0.1900).
57
58 $solution->verify()
59 Traverse the solution verifying it.
60
62 Shlomi Fish <shlomif@cpan.org>
63
65 This software is Copyright (c) 2014 by Shlomi Fish.
66
67 This is free software, licensed under:
68
69 The MIT (X11) License
70
72 Please report any bugs or feature requests on the bugtracker website
73 <https://github.com/shlomif/fc-solve/issues>
74
75 When submitting a bug or request, please include a test-file or a patch
76 to an existing test-file that illustrates the bug or desired feature.
77
79 Perldoc
80 You can find documentation for this module with the perldoc command.
81
82 perldoc Games::Solitaire::Verify::Solution
83
84 Websites
85 The following websites have more information about this module, and may
86 be of help to you. As always, in addition to those websites please use
87 your favorite search engine to discover more resources.
88
89 · MetaCPAN
90
91 A modern, open-source CPAN search engine, useful to view POD in
92 HTML format.
93
94 <https://metacpan.org/release/Games-Solitaire-Verify>
95
96 · Search CPAN
97
98 The default CPAN search engine, useful to view POD in HTML format.
99
100 <http://search.cpan.org/dist/Games-Solitaire-Verify>
101
102 · RT: CPAN's Bug Tracker
103
104 The RT ( Request Tracker ) website is the default bug/issue
105 tracking system for CPAN.
106
107 <https://rt.cpan.org/Public/Dist/Display.html?Name=Games-Solitaire-Verify>
108
109 · AnnoCPAN
110
111 The AnnoCPAN is a website that allows community annotations of Perl
112 module documentation.
113
114 <http://annocpan.org/dist/Games-Solitaire-Verify>
115
116 · CPAN Ratings
117
118 The CPAN Ratings is a website that allows community ratings and
119 reviews of Perl modules.
120
121 <http://cpanratings.perl.org/d/Games-Solitaire-Verify>
122
123 · CPANTS
124
125 The CPANTS is a website that analyzes the Kwalitee ( code metrics )
126 of a distribution.
127
128 <http://cpants.cpanauthors.org/dist/Games-Solitaire-Verify>
129
130 · CPAN Testers
131
132 The CPAN Testers is a network of smoke testers who run automated
133 tests on uploaded CPAN distributions.
134
135 <http://www.cpantesters.org/distro/G/Games-Solitaire-Verify>
136
137 · CPAN Testers Matrix
138
139 The CPAN Testers Matrix is a website that provides a visual
140 overview of the test results for a distribution on various
141 Perls/platforms.
142
143 <http://matrix.cpantesters.org/?dist=Games-Solitaire-Verify>
144
145 · CPAN Testers Dependencies
146
147 The CPAN Testers Dependencies is a website that shows a chart of
148 the test results of all dependencies for a distribution.
149
150 <http://deps.cpantesters.org/?module=Games::Solitaire::Verify>
151
152 Bugs / Feature Requests
153 Please report any bugs or feature requests by email to
154 "bug-games-solitaire-verify at rt.cpan.org", or through the web
155 interface at
156 <https://rt.cpan.org/Public/Bug/Report.html?Queue=Games-Solitaire-Verify>.
157 You will be automatically notified of any progress on the request by
158 the system.
159
160 Source Code
161 The code is open to the world, and available for you to hack on. Please
162 feel free to browse it and play with it, or whatever. If you want to
163 contribute patches, please send me a diff or prod me to pull from your
164 repository :)
165
166 <https://github.com/shlomif/fc-solve>
167
168 git clone git://github.com/shlomif/fc-solve.git
169
170
171
172perl v5.28.1 2019-02-G0a2mes::Solitaire::Verify::Solution(3)