pychess.Players.PyChess
index
/home/thomas/Programmering/python/skak/svn/lib/pychess/Players/PyChess.py

 
Modules
       
pychess.Utils.eval
random

 
Classes
       
pychess.Players.Engine.Engine(pychess.Players.Player.Player)
PyChessEngine

 
class PyChessEngine(pychess.Players.Engine.Engine)
    
Method resolution order:
PyChessEngine
pychess.Players.Engine.Engine
pychess.Players.Player.Player
gobject.GObject
__builtin__.object

Methods defined here:
__init__(self, executable, color)
__kill__(self)
__repr__(self)
analyze(self)
canAnalyze(self)
makeMove(self, history)
offerDraw(self)
runAnalyze(self, history)
setBoard(self, history)
setStrength(self, strength)
setTime(self, secs, gain)

Data and other attributes defined here:
__gtype__ = <GType pychess+Players+PyChess+PyChessEngine (154022536)>

Methods inherited from pychess.Players.Engine.Engine:
undoMoves(self, moves=1)
Undos a number of moves.
wait(self)

Data and other attributes inherited from pychess.Players.Engine.Engine:
__type__ = 1

Methods inherited from pychess.Players.Player.Player:
__del__(self)
Called in the end of the game, or when the engines is otherwise ment to die.
Use for closing connections etc.
hurry(self)
Forces engines to move now, and sends a hurry message to nonlocal human players
setName(self, name)
showBoard(self)
Print the board as it the players sees it, e.g. in fen. Used for debugging only

Data and other attributes inherited from pychess.Players.Player.Player:
DRAW_ACCEPTION = 3
DRAW_OFFER = 2
FLAG_CALL = 1
RESIGNATION = 0

Methods inherited from gobject.GObject:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__gobject_init__(...)
__hash__(...)
x.__hash__() <==> hash(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+Players+PyChess+PyChessEngine\n\nSi...ead ()\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>

 
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.
alphaBeta(engine, board, depth, alpha, beta, capture=False)
getBestOpening(board)
moves(board)
time(...)
time() -> floating point number
 
Return the current time in seconds since the Epoch.
Fractions of a second may be present if the system clock provides them.

 
Data
        ARTIFICIAL = 1
BISHOP = 3
BLACK = 1
BLACKWON = 3
BLACK_CASTLED = 32
BLACK_OO = 4
BLACK_OOO = 8
DRAW = 1
DRAW_50MOVES = 1
DRAW_AGREE = 3
DRAW_REPITITION = 0
DRAW_STALEMATE = 2
KING = 0
KNIGHT = 4
LOCAL = 0
NAME = 'PyChess'
PAWN = 5
PREFIX = '/home/thomas/Programmering/python/skak/svn'
QUEEN = 1
REMOTE = 2
ROOK = 2
RUNNING = 0
SIGNAL_RUN_FIRST = 1
TYPE_NONE = <GType void (4)>
TYPE_PYOBJECT = <GType PyObject (153826304)>
VERSION = '0.5.2'
WHITE = 0
WHITEWON = 2
WHITE_CASTLED = 16
WHITE_OO = 1
WHITE_OOO = 2
WON_CALLFLAG = 5
WON_MATE = 6
WON_RESIGN = 4
chr2Sign = {'b': 3, 'k': 0, 'n': 4, 'p': 5, 'q': 1, 'r': 2}
hisPool = <pychess.Utils.History.HistoryPool instance>
localePrefixes = ('/usr/share/locale', '/usr/local/share/locale')
movePool = <pychess.Utils.Move.MovePool instance>
pool = <pychess.System.ThreadPool.ThreadPool instance>
prefixes = ('/usr/share', '/usr/local/share', '/usr/share/games', '/usr/local/share/games')
reprColor = ['White', 'Black']
reprPiece = ['King', 'Queen', 'Rook', 'Bishop', 'Knight', 'Pawn']
reprResult = ['*', '1/2-1/2', '1-0', '0-1']
reprSign = ['K', 'Q', 'R', 'B', 'N', 'P']