NAME

Freecell::Deal::MS - deal Windows FreeCell / FC Pro layouts

VERSION

version 0.6.0

SYNOPSIS

use Test::More tests => 2;

use Freecell::Deal::MS ();

{

    my $obj = Freecell::Deal::MS->new( deal => 240 );

    # TEST
    ok( $obj, "object" );

    # TEST
    is( $obj->as_str(), <<'EOF', 'as_str 240' );
: JH 9C 5S KC 6S 2H AS
: 5D 3D 9S 2S 3C AD 8C
: 8S 5C KD QC 3H 4D 3S
: 7S AC 9H 6C QH KS 4H
: KH JD 7D 4C 8H 6H
: TS TC 4S 5H QD JS
: 9D JC 2C QS TH 2D
: AH 7C 6D 8D TD 7H
EOF

}

DESCRIPTION

Deals FC Pro deals: http://rosettacode.org/wiki/Deal_cards_for_FreeCell and https://fc-solve.shlomifish.org/faq.html#what_are_ms_deals .

METHODS

Freecell::Deal::MS->new(deal => 11982)

Constructor.

$obj->as_str()

Returns the deal layout as a string.

$obj->as_columns_array()

Returns the deal layout as hash reference with a key 'array_of_arrays_of_strings' which points to an array of 8 columns.

( Available since version 0.6.0 . )

$obj->deal()

For internal use!

SEE ALSO

https://github.com/shlomif/fc-solve/blob/master/fc-solve/source/board_gen/make_multi_boards.c

https://pypi.org/project/pysol-cards/

https://fc-solve.shlomifish.org/faq.html#what_are_ms_deals

SUPPORT

Websites

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.

Bugs / Feature Requests

Please report any bugs or feature requests by email to bug-freecell-deal-ms at rt.cpan.org, or through the web interface at https://rt.cpan.org/Public/Bug/Report.html?Queue=Freecell-Deal-MS. You will be automatically notified of any progress on the request by the system.

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

https://github.com/shlomif/fc-solve

git clone git://github.com/shlomif/fc-solve.git

AUTHOR

Shlomi Fish <shlomif@cpan.org>

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/shlomif/fc-solve/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

COPYRIGHT AND LICENSE

This software is Copyright (c) 2021 by Shlomi Fish.

This is free software, licensed under:

The MIT (X11) License