#!/usr/bin/env perl

use strict;
use warnings;

use Game::Durak::Terminal;

our $VERSION = '0.03';

exit Game::Durak::Terminal->run(@ARGV);

__END__

=head1 NAME

durak - play a deal of Podkidnoy Durak at the terminal

=head1 SYNOPSIS

    durak
    durak --level 1 --seat 2
    durak --seed mine --ascii --no-colour
    durak --width 120 --height 40
    durak --no-paint | tee the-deal

=head1 DESCRIPTION

Deals, plays and says who the fool is. The bot's level runs from one to five
and maps onto the engine's three rungs; the seed is anything, padded to
thirty-two bytes, and it is printed at the end so a deal worth arguing about
can be dealt again.

At a terminal the deal is one painted table that is redrawn in place: their
hand face down, the talon with the trump card lying under it, the bout with
each answer laid across the card it beat and every unanswered attack ringed,
and your own hand fanned and numbered with the cards you may play right now in
their own colour and the rest in grey. Through a pipe it prints plain lines
instead, so a deal can be kept and read back.

=head1 AUTHOR

LNATION, C<< <email@lnation.org> >>

=head1 LICENSE AND COPYRIGHT

This software is Copyright (c) 2026 by LNATION.

This is free software, licensed under the Artistic License 2.0.

=cut
