NAME

Game::Cribbage::Error - error object returned by game operations

VERSION

Version 0.12

SYNOPSIS

use Game::Cribbage::Error;

my $err = Game::Cribbage::Error->new(
	message => 'It is not the turn of player1',
);

if ($err->go) {
	# player must say go
}

PROPERTIES

error

Readonly scalar flag indicating a generic error condition.

$err->error;

message

Readonly scalar containing a human-readable description of the error.

$err->message;

over

Readonly scalar flag set when a card play would take the running total over 31.

$err->over;

go

Readonly scalar flag set when the play has reached 31 or no card can be played without exceeding 31 (the player must say "go").

$err->go;

score

Readonly scalar holding any score associated with the error condition.

$err->score;

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:

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)