Table of Contents

Class: Pawn chess.py

The pawn. Supports promotion, en passant captures.

Base Classes   
Piece
Methods   
attackPath
enPassantPath
finalize
movePath
validate
  attackPath 
attackPath (
        self,
        start,
        end,
        )

Return a path from START to END for an attack, or None.

  enPassantPath 
enPassantPath (
        self,
        start,
        end,
        board,
        )

Return a path from START to END on BOARD for an en passant move/attack, or None.

  finalize 
finalize (
        self,
        start,
        end,
        board,
        )

  movePath 
movePath (
        self,
        start,
        end,
        )

Return a path from START to END for a move, or None.

  validate 
validate (
        self,
        to,
        board,
        )


Table of Contents

This document was automatically generated on Thu Jul 25 17:22:53 2002 by HappyDoc version 2.0.1