File Coverage

lib/Games/Checkers/PlayerConstants.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             # Games::Checkers, Copyright (C) 1996-2012 Mikhael Goikhman, migo@cpan.org
2             #
3             # This program is free software: you can redistribute it and/or modify
4             # it under the terms of the GNU General Public License as published by
5             # the Free Software Foundation, either version 3 of the License, or
6             # (at your option) any later version.
7             #
8             # This program is distributed in the hope that it will be useful,
9             # but WITHOUT ANY WARRANTY; without even the implied warranty of
10             # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11             # GNU General Public License for more details.
12             #
13             # You should have received a copy of the GNU General Public License
14             # along with this program. If not, see .
15              
16             package Games::Checkers::PlayerConstants;
17              
18             # PlayerType
19             use Games::Checkers::DeclareConstant {
20 1         9 User => 0,
21             Comp => 1,
22 1     1   7 };
  1         2  
23              
24             # MoveStatus
25             use Games::Checkers::DeclareConstant {
26 1         7 MoveDone => 0,
27             GameOver => 1,
28             StopGame => 2,
29 1     1   6 };
  1         2  
30              
31             1;