Chess::Piece::PawnA class representing a pawn in a chess game | |
Download |
Chess::Piece::Pawn Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Brian Richardson
- Publisher web site:
- http://search.cpan.org/~bjr/Chess-0.6.0/lib/Chess/Game/MoveList.pm
Chess::Piece::Pawn Tags
Chess::Piece::Pawn Description
A class representing a pawn in a chess game Chess::Piece::Pawn is a class representing a pawn in a chess game.SYNOPSIS $pawn = Chess::Piece::Pawn->new("e2", "White King's pawn"); $true = $pawn->can_reach("e4"); $true = $pawn->can_reach("e3"); $true = $pawn->can_reach("f3"); $false = $pawn->can_reach("e5"); $queen = $pawn->promote("queen");The Chess module provides a framework for writing chess programs with Perl. This class is part of that framework, representing a pawn in a Chess::Game. Requirements: · Perl
Chess::Piece::Pawn Related Software