#!perl

use 5.010;
use strict;
use warnings;

use Game::Brandubh::Terminal;

our $VERSION = '0.02';

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

__END__

=head1 NAME

brandubh - the Irish tafl game, in a terminal

=head1 SYNOPSIS

    brandubh
    brandubh --side defenders --level 3
    brandubh --side both --no-colour
    brandubh --load saved.txt

=head1 DESCRIPTION

Plays brandubh against the program, between two people, or the program against
itself. See L<Game::Brandubh::Terminal> for how it is played and
L<Game::Brandubh> for the rules.

=head1 OPTIONS

=over 4

=item B<--side> I<who>

Which side is yours: C<attackers> (the default), C<defenders>, C<both> for two
people at one keyboard, or C<none> to watch.

=item B<--level> I<n>

1, 2 or 3. 2 by default.

=item B<--variant> I<text>

The rule set, as L<Game::Brandubh::Variant/as_string> writes one.

=item B<--seed> I<hex>

Sixty-four hexadecimal characters. The program draws its choices from them, so
the same seed plays the same game.

=item B<--load> I<file>

Carry on with a game written by the C<save> command.

=item B<--no-colour>

Draw the board in letters and lines. C<--no-color> is the same.

=item B<--no-pick>

Type moves instead of choosing them with the arrow keys.

=item B<--no-unicode>

Letters for the pieces, keeping the colour.

=item B<--version>, B<--help>

Say so and stop.

=back

=head1 EXIT STATUS

0 when the game was left in the ordinary way, 2 when the options were wrong or
a file could not be loaded.

=head1 AUTHOR

LNATION <email@lnation.org>

=head1 LICENSE AND COPYRIGHT

This software is Copyright (c) 2026 by LNATION <email@lnation.org>.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)

=cut
