NAME
Game::Cribbage::Deck::Card - card
VERSION
Version 0.12
SYNOPSIS
my
$card
= Game::Cribbage::Deck::Card->new(
id
=> 13,
used
=> 0,
suit
=>
'H'
,
symbol
=>
'K'
);
$card
->value();
# 10
$card
->run_value();
# 13
PROPERTIES
id
Scalar property to store a unique identifier for the card
$card
->id;
used
Boolean property to store whether the card has been used.
$card
->used;
suit
Readonly property that stores the current cards suit.
$card
->suit;
symbol
Readonly property that stores the current cards symbol.
$card
->symbol;
FUNCTIONS
value
Returns the value of the card where A is 1 and J, Q, K is 10.
$card
->value;
run_value
Returns the run sequence value for the card where A is 1, J is 11, Q is 12 and K is 13.
$card
->run_value;
suit_symbol
Returns the utf8 charcter that represents the suit.
$card
->suit_symbol;
ui_stringify
Stringify the current card with suit followed by symbol.
$card
->ui_stringify;
strigify
Stringify the current card with symbol followed by suit.
$card
->stringify;
match
Validate whether the passed card is the same as the current card.
$card
->match(
$card
);
AUTHOR
LNATION, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-game-cribbage at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Game-Cribbage. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Game::Cribbage
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2024 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)