NAME
Game::Cribbage::Player - a player in a cribbage game
VERSION
Version 0.12
SYNOPSIS
use Game::Cribbage::Player;
my $player = Game::Cribbage::Player->new(
id => 1,
number => 1,
name => 'Alice',
);
print $player->player; # 'player1'
PROPERTIES
id
Readonly integer property holding the player's database or external identifier. May be undef if persistence is not used.
$player->id;
number
Readonly integer property holding the player's seat number (1-based) for the current game. Used to derive the internal player key.
$player->number;
name
Readonly string property holding the player's display name.
$player->name;
FUNCTIONS
player
Returns the internal player identifier string derived from the seat number, e.g. 'player1', 'player2'. This key is used throughout the engine to look up per-player data inside Game::Cribbage::Hands and related objects.
$player->player; # 'player1'
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)