NAME

Algorithm::Metric::Chessboard::Journey - Model a journey on an Algorithm::Metric::Chessboard grid.

DESCRIPTION

See Algorithm::Metric::Chessboard.

METHODS

new
my $wormhole_a =
  Algorithm::Metric::Chessboard::Wormhole->new( x => 3, y => 9 );
my $wormhole_b =
  Algorithm::Metric::Chessboard::Wormhole->new( x => 40, y => 70 );

my $journey =
  Algorithm::Metric::Chessboard::Journey->new(
      start    => [ 3, 10 ],
      end      => [ 45, 78 ],
      via      => [ $wormhole_a, $wormhole_b ],
      distance => 10,
                                              );

This is purely a data object. You don't want to call this directly; it's used internally by Algorithm::Metric::Chessboard.

AUTHOR

Kake Pugh (kake@earth.li).

COPYRIGHT

Copyright (C) 2004 Kake Pugh.  All Rights Reserved.

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