NAME

Dreamhack::Solitaire::Medici - Kit for Solitaire Medici

SYNOPSIS

use Dreamhack::Solitaire::Medici;

my $sol = Dreamhack::Solitaire::Medici->new();
$sol->init_layout([qw(Jh ? Ac 10s ? ? Kd)]);
$sol->process() or die 'Cannot build solitaire, attempts count: ', $sol->{'attempts'};

print $sol->format();
print "Attempts count: ", $sol->{'attempts'}, "\n";

or, for empty starting layout:

print Dreamhack::Solitaire::Medici->new()->process()->format();

or, for russian programmers:

print Dreamhack::Solitaire::Medici->new(lang=>'ru_RU.utf8')->process()->format();
In this case you mast use cyrrilic cards abbr for init layout.

DESCRIPTION

The Solitaire Medici, particular using by dreamhackers/stalkers for reality management. Chain creation carried out by bruteforce method with max attempts count one hundred thousand (default) or your own value. Starting layout between 0 and 36 cards.

ABBR FOR DECK

Example: Qs, 7d

METHODS

LICENSE

Copyright (C) gugo.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

gugo <gugo@cpan.org>