Game::WordBrain::Letter - Representation of a Letter in a WordBrain Game
# Create a new Game::WordBrain::Letter my $letter = Game::WordBrain::Letter->new({ letter => 'a', row => 1, col => 3, }); # Stringification is overloaded print $letter; # prints 'a' # Equality is overloaded if( $letter == $letter ) { print "Same letter!'; }
Represents a Letter in a WordBrain Game.
A single character string that contains the actual letter represented [a-z].
The row in a WordBrain game where this letter appears.
The col in a WordBrain game where this letter appears.
my $letter = Game::WordBrain::Letter->new({ letter => 'a', row => 1, col => 3, });
Given a letter, a row, and a col, returns an instance of a Game::WordBrain::Letter.
To install Game::WordBrain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Game::WordBrain
CPAN shell
perl -MCPAN -e shell install Game::WordBrain
For more information on module installation, please visit the detailed CPAN module installation guide.