line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::Domino::Params; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$Games::Domino::Params::VERSION = '0.32'; |
4
|
|
|
|
|
|
|
$Games::Domino::Params::AUTHORITY = 'cpan:MANWAR'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Games::Domino::Params - Placeholder for parameters for Games::Domino. |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Version 0.32 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
|
67
|
use 5.006; |
|
4
|
|
|
|
|
4285
|
|
17
|
4
|
|
|
4
|
|
21
|
use strict; use warnings; |
|
4
|
|
|
4
|
|
6
|
|
|
4
|
|
|
|
|
73
|
|
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
210
|
|
18
|
4
|
|
|
4
|
|
25
|
use Data::Dumper; |
|
4
|
|
|
|
|
333
|
|
|
4
|
|
|
|
|
249
|
|
19
|
|
|
|
|
|
|
|
20
|
4
|
|
|
4
|
|
2759
|
use Type::Library -base, -declare => qw(ZeroOrOne ZeroToSix HorC); |
|
4
|
|
|
|
|
99464
|
|
|
4
|
|
|
|
|
39
|
|
21
|
4
|
|
|
4
|
|
5649
|
use Types::Standard qw(Str); |
|
4
|
|
|
|
|
164606
|
|
|
4
|
|
|
|
|
38
|
|
22
|
4
|
|
|
4
|
|
4681
|
use Type::Utils; |
|
4
|
|
|
|
|
16020
|
|
|
4
|
|
|
|
|
34
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
declare 'ZeroOrOne', |
25
|
|
|
|
|
|
|
as Str, |
26
|
|
|
|
|
|
|
where { /^[0|1]$/ }, |
27
|
|
|
|
|
|
|
message { "ERROR: Only 0 or 1 allowed." }; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
declare 'ZeroToSix', |
30
|
|
|
|
|
|
|
as Str, |
31
|
|
|
|
|
|
|
where { /^[0-6]$/ }, |
32
|
|
|
|
|
|
|
message { "ERROR: Only 0 to 6 allowed." }; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
declare 'HorC', |
35
|
|
|
|
|
|
|
as Str, |
36
|
|
|
|
|
|
|
where { /^[H|C]$/i }, |
37
|
|
|
|
|
|
|
message { "ERROR: Only H or C allowed." }; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
It is used internally by L. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHOR |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Mohammad S Anwar, C<< >> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 REPOSITORY |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 BUGS |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Please report any bugs or feature requests to C, |
54
|
|
|
|
|
|
|
or through the web interface at L. |
55
|
|
|
|
|
|
|
I will be notified, and then you'll automatically be notified of progress on your |
56
|
|
|
|
|
|
|
bug as I make changes. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SUPPORT |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
perldoc Games::Domino::Params |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
You can also look for information at: |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=over 4 |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker (report bugs here) |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
L |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
L |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item * CPAN Ratings |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
L |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item * Search CPAN |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
L |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=back |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Copyright 2012 - 2016 Mohammad S Anwar. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This program is free software; you can redistribute it and / or modify it under |
91
|
|
|
|
|
|
|
the terms of the the Artistic License (2.0). You may obtain a copy of the full |
92
|
|
|
|
|
|
|
license at: |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
L |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified Versions is |
97
|
|
|
|
|
|
|
governed by this Artistic License.By using, modifying or distributing the Package, |
98
|
|
|
|
|
|
|
you accept this license. Do not use, modify, or distribute the Package, if you do |
99
|
|
|
|
|
|
|
not accept this license. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made by someone |
102
|
|
|
|
|
|
|
other than you,you are nevertheless required to ensure that your Modified Version |
103
|
|
|
|
|
|
|
complies with the requirements of this license. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service mark, |
106
|
|
|
|
|
|
|
tradename, or logo of the Copyright Holder. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge patent license |
109
|
|
|
|
|
|
|
to make, have made, use, offer to sell, sell, import and otherwise transfer the |
110
|
|
|
|
|
|
|
Package with respect to any patent claims licensable by the Copyright Holder that |
111
|
|
|
|
|
|
|
are necessarily infringed by the Package. If you institute patent litigation |
112
|
|
|
|
|
|
|
(including a cross-claim or counterclaim) against any party alleging that the |
113
|
|
|
|
|
|
|
Package constitutes direct or contributory patent infringement,then this Artistic |
114
|
|
|
|
|
|
|
License to you shall terminate on the date that such litigation is filed. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND |
117
|
|
|
|
|
|
|
CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED |
118
|
|
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR |
119
|
|
|
|
|
|
|
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS |
120
|
|
|
|
|
|
|
REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, |
121
|
|
|
|
|
|
|
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE |
122
|
|
|
|
|
|
|
OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
1; # End of Games::Domino::Params |