1Games::Solitaire::VerifUys:e:rGoClofn(t3r)ibuted Perl DoGcaummeesn:t:aStoilointaire::Verify::Golf(3)
2
3
4
6 Games::Solitaire::Verify::Golf - verify an entire solution of
7 black-hole-solve (or a similar solver)
8
10 version 0.2403
11
13 my ( $board_fn, $solution_fn ) = @ARGV;
14 my $verifier = Games::Solitaire::Verify::Golf->new(
15 {
16 board_string => path($board_fn)->slurp_raw(),
17 variant => "all_in_a_row",
18 }
19 );
20
21 open my $fh, '<', $solution_fn;
22 $verifier->process_solution( sub { my $l = <$fh>; chomp $l; return $l; } );
23 print "Solution is OK.\n";
24 exit(0);
25
27 Games::Solitaire::Verify::Golf->new({board_string=>$str, variant
28 =>"golf"|"all_in_a_row"|"black_hole"})
29 Construct a new validator / verifier for the variant and the initial
30 board string.
31
32 For golf one can specify:
33
34 · wrap_ranks
35
36 · queens_on_kings
37
38 $obj->process_solution($line_iter_cb)
39 Process the solution with the line iterator. Throws an exception if
40 there is an error in it.
41
43 Websites
44 The following websites have more information about this module, and may
45 be of help to you. As always, in addition to those websites please use
46 your favorite search engine to discover more resources.
47
48 · MetaCPAN
49
50 A modern, open-source CPAN search engine, useful to view POD in
51 HTML format.
52
53 <https://metacpan.org/release/Games-Solitaire-Verify>
54
55 · RT: CPAN's Bug Tracker
56
57 The RT ( Request Tracker ) website is the default bug/issue
58 tracking system for CPAN.
59
60 <https://rt.cpan.org/Public/Dist/Display.html?Name=Games-Solitaire-Verify>
61
62 · CPANTS
63
64 The CPANTS is a website that analyzes the Kwalitee ( code metrics )
65 of a distribution.
66
67 <http://cpants.cpanauthors.org/dist/Games-Solitaire-Verify>
68
69 · CPAN Testers
70
71 The CPAN Testers is a network of smoke testers who run automated
72 tests on uploaded CPAN distributions.
73
74 <http://www.cpantesters.org/distro/G/Games-Solitaire-Verify>
75
76 · CPAN Testers Matrix
77
78 The CPAN Testers Matrix is a website that provides a visual
79 overview of the test results for a distribution on various
80 Perls/platforms.
81
82 <http://matrix.cpantesters.org/?dist=Games-Solitaire-Verify>
83
84 · CPAN Testers Dependencies
85
86 The CPAN Testers Dependencies is a website that shows a chart of
87 the test results of all dependencies for a distribution.
88
89 <http://deps.cpantesters.org/?module=Games::Solitaire::Verify>
90
91 Bugs / Feature Requests
92 Please report any bugs or feature requests by email to
93 "bug-games-solitaire-verify at rt.cpan.org", or through the web
94 interface at
95 <https://rt.cpan.org/Public/Bug/Report.html?Queue=Games-Solitaire-Verify>.
96 You will be automatically notified of any progress on the request by
97 the system.
98
99 Source Code
100 The code is open to the world, and available for you to hack on. Please
101 feel free to browse it and play with it, or whatever. If you want to
102 contribute patches, please send me a diff or prod me to pull from your
103 repository :)
104
105 <https://github.com/shlomif/fc-solve>
106
107 git clone git://github.com/shlomif/fc-solve.git
108
110 Shlomi Fish <shlomif@cpan.org>
111
113 Please report any bugs or feature requests on the bugtracker website
114 <https://github.com/shlomif/fc-solve/issues>
115
116 When submitting a bug or request, please include a test-file or a patch
117 to an existing test-file that illustrates the bug or desired feature.
118
120 This software is Copyright (c) 2008 by Shlomi Fish.
121
122 This is free software, licensed under:
123
124 The MIT (X11) License
125
126
127
128perl v5.32.0 2020-07-28 Games::Solitaire::Verify::Golf(3)