Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-release > by-pkgid > cdede5054f7c3099d40b98b874b7db9e > files > 39

perl-Games-Solitaire-Verify-0.170.100-2.mga6.noarch.rpm

#!/usr/bin/perl

use strict;
use warnings;

use autodie;

use Games::Solitaire::Verify::Solution::ExpandMultiCardMoves;

my $input_filename = shift(@ARGV);

open (my $input_fh, "<", $input_filename);

my $solution = Games::Solitaire::Verify::Solution::ExpandMultiCardMoves->new(
    {
        input_fh => $input_fh,
        variant => "freecell",
        output_fh => \*STDOUT,
    },
);

my $ret = $solution->verify();

close($input_fh);

if ($ret)
{
    die $ret;
}