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

 
Modules
       
errno
gobject
os
select
signal
tty

 
Classes
       
exceptions.Exception
EngineDead
gobject.GObject(__builtin__.object)
EngineConnection
pychess.Players.Player.Player(gobject.GObject)
Engine

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

Methods defined here:
__repr__(self)
For example 'GNU Chess 5.07'
analyze(self)
canAnalyze(self)
setBoard(self, history)
setDepth(self, depth)
Sets the depth of the engine. Should only be used for analyze engines.
Other engines will use the setStrength method.
setStrength(self, strength)
Takes strength 0, 1, 2 (higher is better)
setTime(self, seconds, gain)
undoMoves(self, moves=1)
Undos a number of moves.
wait(self)

Data and other attributes defined here:
__gtype__ = <GType pychess+Players+Engine+Engine (147425376)>
__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
makeMove(self, history)
Takes a history object, concidering the last move as an opponent move,
and returns a new moveobject with the players answer.
offerDraw(self)
Offers the player a draw. Should respond emiting a DRAW_ACCEPTION,
or simply do nothing
setName(self, name)
showBoard(self)
Print the board as it the players sees it, e.g. in fen. Used for debugging only
updateTime(self, secs, opsecs)
Updates the player with the current remaining time as a float of seconds

Methods inherited from gobject.GObject:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__gobject_init__(...)
__hash__(...)
x.__hash__() <==> hash(x)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
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+Engine+Engine\n\nSignals fr...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>

 
class EngineConnection(gobject.GObject)
    
Method resolution order:
EngineConnection
gobject.GObject
__builtin__.object

Methods defined here:
__init__(self, executable)
readline(self, timeout=-1)
recieved(self, fd, condition)
sigint(self)
sigkill(self)
sigterm(self)
wait4exit(self)
write(self, data)

Data and other attributes defined here:
__gtype__ = <GType pychess+Players+Engine+EngineConnection (147425056)>

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+Players+Engine+EngineConnection\n\n...gup ()\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 EngineDead(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
Functions
       
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
CHILD = 0
SIGNAL_RUN_FIRST = 1
TYPE_NONE = <GType void (4)>
TYPE_PYOBJECT = <GType PyObject (147390800)>
log = <Log object (pychess+System+Log+Log)>