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

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

 
Modules
       
pychess.Utils.validator

 
Classes
       
gobject.GObject(__builtin__.object)
History
HistoryPool

 
class History(gobject.GObject)
    Class remembers all moves, and can give you
a two dimensional array (8x8) of Piece objects
 
 
Method resolution order:
History
gobject.GObject
__builtin__.object

Methods defined here:
__eq__(self, other)
Warning: Not complete equals test.
Only most important stuff is tested
__getitem__(self, i)
__init__(self, mvlist=False, special=False)
__len__(self)
add(self, move, mvlist=False)
clone(self)
curCol(self)
reset(self, mvlist=False)
setStartingColor(self, color)

Data and other attributes defined here:
__gtype__ = <GType pychess+Utils+History+History (142792128)>

Methods inherited from gobject.GObject:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__gobject_init__(...)
__hash__(...)
x.__hash__() <==> hash(x)
__repr__(...)
x.__repr__() <==> repr(x)
chain(...)
connect(...)
connect_after(...)
connect_object(...)
connect_object_after(...)
disconnect(...)
disconnect_by_func(...)
emit(...)
emit_stop_by_name(...)
freeze_notify(...)
get_data(...)
get_property(...)
handler_block(...)
handler_block_by_func(...)
handler_disconnect(...)
handler_is_connected(...)
handler_unblock(...)
handler_unblock_by_func(...)
notify(...)
set_data(...)
set_property(...)
stop_emission(...)
thaw_notify(...)

Data and other attributes inherited from gobject.GObject:
__dict__ = <dictproxy object>
__gdoc__ = 'Object pychess+Utils+History+History\n\nClass reme...ded ()\n\nSignals from GObject:\n notify (GParam)\n\n'
__grefcount__ = <attribute '__grefcount__' of 'gobject.GObject' objects>
__new__ = <built-in method __new__ of GObjectMeta object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
props = <gobject.GProps object>

 
class HistoryPool
     Methods defined here:
__init__(self)
add(self, history)
pop(self, clear=True)

 
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.
rm(var, opp)
startBoard()

 
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
SIGNAL_RUN_FIRST = 1
SPY = 1
TYPE_NONE = <GType void (4)>
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}
hashfALPHA = 0
hashfBETA = 1
hashfEXACT = 2
hisPool = <pychess.Utils.History.HistoryPool instance>
localePrefixes = ('/usr/share/locale', '/usr/local/share/locale')
log = <Log object (pychess+System+Log+Log)>
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']