colbyga / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

UCI self.strength problem #345

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Started a new Crafty-Crafty game with 2 analyzing Glaurung engine

tamas@tami:~/.pychess$ p
4209: old priority 0, new priority 15
4212: old priority 0, new priority 15
4215: old priority 0, new priority 15
4217: old priority 0, new priority 15
  File "/home/tamas/svn/pychess/trunk/lib/pychess/System/ThreadPool.py",
line 15, in encaps
    self._Thread__bootstrap_inner()
  File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
    self.run()
  File "/home/tamas/svn/pychess/trunk/lib/pychess/System/ThreadPool.py",
line 73, in run
    self.func()
  File "/home/tamas/svn/pychess/trunk/lib/pychess/System/ThreadPool.py",
line 46, in <lambda>
    a.func = lambda: func(*args)
  File "/home/tamas/svn/pychess/trunk/lib/pychess/System/GtkWorker.py",
line 164, in run
    self.result = self.func(self)
  File "/home/tamas/svn/pychess/trunk/lib/pychess/widgets/ionest.py", line
41, in <lambda>
    workfunc(w, gamemodel, player0tup, player1tup, loaddata))
  File "/home/tamas/svn/pychess/trunk/lib/pychess/widgets/ionest.py", line
131, in workfunc
    gamemodel.start()
  File "/home/tamas/svn/pychess/trunk/lib/pychess/System/ThreadPool.py",
line 103, in start
    pool.start(self.run)
  File "/home/tamas/svn/pychess/trunk/lib/pychess/Utils/GameModel.py", line
336, in run
    spectactor.makeMove(model)
  File "/home/tamas/svn/pychess/trunk/lib/pychess/Players/UCIEngine.py",
line 103, in makeMove
    self._searchNow()
  File "/home/tamas/svn/pychess/trunk/lib/pychess/Players/UCIEngine.py",
line 129, in _searchNow
    if self.strength <= 3:
<type 'exceptions.AttributeError'> 'UCIEngine' object has no attribute
'strength'

Original issue reported on code.google.com by gbtami on 17 Sep 2008 at 10:28

GoogleCodeExporter commented 9 years ago
Strange, it seams the self.mode attribute isn't set correctly. So in def 
_searchNow
it enters the normal engine part, rather than the analyzer part.

Original comment by lobais on 17 Sep 2008 at 3:01

GoogleCodeExporter commented 9 years ago
Can you still repdouce?

Original comment by lobais on 12 Dec 2008 at 6:42

GoogleCodeExporter commented 9 years ago
No, i can't.

Original comment by gbtami on 13 Dec 2008 at 5:49

GoogleCodeExporter commented 9 years ago

Original comment by gbtami on 31 Dec 2008 at 9:55