| 1 | package Game::WordBrain::WordToFind; | ||
| 2 | |||
| 3 | 9 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 9 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 9 | our $VERSION = '0.2.2'; # VERSION | |
| 7 | # ABSTRACT: Representation of a WordBrain Word To Find | ||
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Game::WordBrain::WordToFind - Representation of a WordBrain Word To Find | ||
| 12 | |||
| 13 | =head1 SYNOPSIS | ||
| 14 | |||
| 15 | my $word_to_find = Game::WordBrain::WordToFind->new({ | ||
| 16 | num_letters => 5 | ||
| 17 | }); | ||
| 18 | |||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | In WordBrain, all we are given is the length ( and number of ) unknown words. L<Game::WordBrain::WordToFind> represents a single unknown word, containing only it's length. | ||
| 23 | |||
| 24 | =head1 ATTRIBUTES | ||
| 25 | |||
| 26 | =head2 B<num_letters> | ||
| 27 | |||
| 28 | The length of the word to find. | ||
| 29 | |||
| 30 | =head1 METHODS | ||
| 31 | |||
| 32 | =head2 new | ||
| 33 | |||
| 34 | my $word_to_find = Game::WordBrain::WordToFind->new({ | ||
| 35 | num_letters => 5 | ||
| 36 | }); | ||
| 37 | |||
| 38 | Given the length of the unknown L<Game::WordBrain::Word>, returns an instance of L<Game::WordBrain::WordToFind>. | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | 11 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 43 | 11 | my $class = shift; | |
| 44 | 11 | my $args = shift; | |
| 45 | |||
| 46 | 11 | return bless $args, $class; | |
| 47 | } | ||
| 48 | |||
| 49 | 9 | 1; | |