pychess.Utils.Move
index
/home/thomas/Programmering/python/skak/svn/lib/pychess/Utils/Move.py

# -*- coding: UTF-8 -*-

 
Classes
       
exceptions.Exception
ParsingError
Move
MovePool

 
class Move
     Methods defined here:
__eq__(self, other)
__hash__(self)
__init__(self, cord0, cord1, promotion=1)
(cord0, cord1, [promotion])
__repr__(self)

Properties defined here:
cords
get = _get_cords(self)

 
class MovePool
     Methods defined here:
__init__(self)
add(self, move)
pop(self, cord0, cord1, promotion=1)

 
class ParsingError(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
Functions
       
Lock = allocate_lock(...)
allocate_lock() -> lock object
(allocate() is an obsolete synonym)
 
Create a new lock object.  See LockType.__doc__ for information about locks.
parseAN(board, an)
Parse an Algebraic Notation string
parseLAN(board, lan)
Parse a Long/Expanded Algebraic Notation string
parseSAN(board, san)
Parse a Short/Abbreviated Algebraic Notation string
toAN(board, move)
Returns a Algebraic Notation string of a move
board should be prior to the move
toFAN(board, board2, move)
Returns a Figurine Algebraic Notation string of a move
toLAN(board, move)
Returns a Long/Expanded Algebraic Notation string of a move
board should be prior to the move
toSAN(board, board2, move, fan=False)
Returns a Short/Abbreviated Algebraic Notation string of a move 
The board should be prior to the move, board2 past.
If not board2, toSAN will not test mate

 
Data
        AN = 3
ARTIFICIAL = 1
BISHOP = 3
BLACK = 1
BLACKWON = 3
BLACK_CASTLED = 32
BLACK_OO = 4
BLACK_OOO = 8
DRAW = 1
DRAW_50MOVES = 1
DRAW_ACCEPTION = 3
DRAW_AGREE = 3
DRAW_INSUFFICIENT = 4
DRAW_OFFER = 2
DRAW_REPITITION = 0
DRAW_STALEMATE = 2
FAN = 2
FLAG_CALL = 1
HINT = 0
KING = 0
KNIGHT = 4
LAN = 1
LOCAL = 0
NAME = 'PyChess'
PAWN = 5
PREFIX = '/home/thomas/Programmering/python/skak/svn'
QUEEN = 1
REMOTE = 2
RESIGNATION = 0
ROOK = 2
RUNNING = 0
SAN = 0
SPY = 1
VERSION = '0.6.0_beta'
WHITE = 0
WHITEWON = 2
WHITE_CASTLED = 16
WHITE_OO = 1
WHITE_OOO = 2
WON_CALLFLAG = 6
WON_MATE = 7
WON_RESIGN = 5
chr2Sign = {'b': 3, 'k': 0, 'n': 4, 'p': 5, 'q': 1, 'r': 2}
fandic = [['\xe2\x99\x94', '\xe2\x99\x95', '\xe2\x99\x96', '\xe2\x99\x97', '\xe2\x99\x98', '\xe2\x99\x99'], ['\xe2\x99\x9a', '\xe2\x99\x9b', '\xe2\x99\x9c', '\xe2\x99\x9d', '\xe2\x99\x9e', '\xe2\x99\x9f']]
hashfALPHA = 0
hashfBETA = 1
hashfEXACT = 2
localePrefixes = ('/usr/share/locale', '/usr/local/share/locale')
log = <Log object (pychess+System+Log+Log)>
movePool = <pychess.Utils.Move.MovePool instance>
prefixes = ('/usr/share', '/usr/local/share', '/usr/share/games', '/usr/local/share/games')
reprColor = ['White', 'Black']
reprMode = ['hint', 'spy']
reprPiece = ['King', 'Queen', 'Rook', 'Bishop', 'Knight', 'Pawn']
reprResult = ['*', '1/2-1/2', '1-0', '0-1']
reprSign = ['K', 'Q', 'R', 'B', 'N', 'P']