Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-05-05 Thread Victor-Philipp Busch
Package: knights
Version: 0.6-6
Severity: grave
Justification: renders package unusable

Hello,

if I start knights I can't play against gnuchess, sjeng or crafty. The games 
starts, but if I take a move that isn't in the
opening book, crafty, gnuchess an sjeng don't move anymore.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=de_DE.ISO-8859-1, [EMAIL PROTECTED] (charmap=ISO-8859-15) 
(ignored: LC_ALL set to [EMAIL PROTECTED])

Versions of packages knights depends on:
ii  kdelibs4c2a 4:3.5.2-2+b1 core libraries for all KDE applica
ii  libart-2.0-22.3.17-1 Library of functions for 2D graphi
ii  libarts1c2a 1.5.2-1  aRts sound system core components
ii  libasound2  1.0.11-3 ALSA library
ii  libaudio2   1.7-9The Network Audio System (NAS). (s
ii  libaudiofile0   0.2.6-6  Open-source version of SGI's audio
ii  libc6   2.3.6-7  GNU C Library: Shared libraries
ii  libesd-alsa0 [libesd0]  0.2.36-3 Enlightened Sound Daemon (ALSA) - 
ii  libfontconfig1  2.3.2-5.1generic font configuration library
ii  libfreetype62.1.10-3 FreeType 2 font engine, shared lib
ii  libgamin0 [libfam0] 0.1.7-3  Client library for the gamin file 
ii  libgcc1 1:4.1.0-1+b1 GCC support library
ii  libglib2.0-02.10.2-2 The GLib library of C routines
ii  libice6 1:1.0.0-3X11 Inter-Client Exchange library
ii  libidn110.5.18-2 GNU libidn library, implementation
ii  libjack0.100.0-00.101.1-1JACK Audio Connection Kit (librari
ii  libjpeg62   6b-12The Independent JPEG Group's JPEG 
ii  libmad0 0.15.1b-2.1  MPEG audio decoder library
ii  libogg0 1.1.3-2  Ogg Bitstream Library
ii  libpng12-0  1.2.8rel-5.1 PNG library - runtime
ii  libqt3-mt   3:3.3.6-2Qt GUI Library (Threaded runtime v
ii  libsm6  1:1.0.0-4X11 Session Management library
ii  libstdc++6  4.1.0-1+b1   The GNU Standard C++ Library v3
ii  libvorbis0a 1.1.2-1  The Vorbis General Audio Compressi
ii  libvorbisenc2   1.1.2-1  The Vorbis General Audio Compressi
ii  libvorbisfile3  1.1.2-1  The Vorbis General Audio Compressi
ii  libx11-62:1.0.0-6X11 client-side library
ii  libxcursor1 1.1.5.2-5X cursor management library
ii  libxext61:1.0.0-4X11 miscellaneous extension librar
ii  libxft2 2.1.8.2-6FreeType-based font drawing librar
ii  libxi6  1:1.0.0-5X11 Input extension library
ii  libxinerama11:1.0.1-4X11 Xinerama extension library
ii  libxrandr2  2:1.1.0.2-4  X11 RandR extension library
ii  libxrender1 1:0.9.0.2-4  X Rendering Extension client libra
ii  libxt6  1:1.0.0-4X11 toolkit intrinsics library
ii  zlib1g  1:1.2.3-11   compression library - runtime

knights recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-05-05 Thread Tommaso Moroni
On Fri, May 05, 2006 at 11:51:49PM +0200, Victor-Philipp Busch wrote:
> Hello,
> 
> if I start knights I can't play against gnuchess, sjeng or crafty. The games 
> starts, but if I take a move that isn't in the
> opening book, crafty, gnuchess an sjeng don't move anymore.
 
When knights seems to be stuck, does the CPU is at 100%?
This is my case, and this means that it is currently computing the next move.
To see if it is also your case, try to set the difficulty level of the chess 
engine to easy: it should do the next move in a few seconds (depending on your
CPU power).


Regards,
-- 
Tommaso Moroni
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-05-09 Thread Victor-Philipp Busch
: Samstag, 6. Mai 2006 07:29
: Tommaso Moroni 
: Re: Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

| On Fri, May 05, 2006 at 11:51:49PM +0200, Victor-Philipp Busch wrote:
| > Hello,
| >
| > if I start knights I can't play against gnuchess, sjeng or crafty. The
| > games starts, but if I take a move that isn't in the opening book,
| > crafty, gnuchess an sjeng don't move anymore.
|
| When knights seems to be stuck, does the CPU is at 100%?

No, this is not the problem.  After 1.e4 (5-Min-Blitz) gnuchess don't know 
what he should move :(

Hm, I read something, that gnuchess and other chessprograms take the whole 
cpu - but this is not a bug but a feature to find the best move!

| This is my case, and this means that it is currently computing the next
| move. To see if it is also your case, try to set the difficulty level of
| the chess engine to easy: it should do the next move in a few seconds
| (depending on your CPU power).

How can I set the level of the chess engine with the knights-frontend?

Best regards,

Victor-Philipp


pgptYecKhS1IL.pgp
Description: PGP signature


Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-05-10 Thread Tommaso Moroni
On Tue, May 09, 2006 at 03:03:01PM +0200, Victor-Philipp Busch wrote:
> | When knights seems to be stuck, does the CPU is at 100%?
> 
> No, this is not the problem.  After 1.e4 (5-Min-Blitz) gnuchess don't know 
> what he should move :(

On my PC (an Athlon-XP 2400+), after 1.e4,  gnuchess moves after 58 seconds 
with difficulty set to max, or after 2 seconds with difficulty set to min. 

> | This is my case, and this means that it is currently computing the next
> | move. To see if it is also your case, try to set the difficulty level of
> | the chess engine to easy: it should do the next move in a few seconds
> | (depending on your CPU power).
> 
> How can I set the level of the chess engine with the knights-frontend?

File -> New Match, then click on "Computer" radio button, where you can choose
the chess engine and the player strength.

Regards,
-- 
Tommaso Moroni
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-05-18 Thread Victor-Philipp Busch
: Mittwoch, 10. Mai 2006 12:44
: Tommaso Moroni 
: Re: Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

| On Tue, May 09, 2006 at 03:03:01PM +0200, Victor-Philipp Busch wrote:
| > | When knights seems to be stuck, does the CPU is at 100%?
| >
| > No, this is not the problem.  After 1.e4 (5-Min-Blitz) gnuchess don't
| > know what he should move :(
|
| On my PC (an Athlon-XP 2400+), after 1.e4,  gnuchess moves after 58 seconds
| with difficulty set to max, or after 2 seconds with difficulty set to min.
|
| > | This is my case, and this means that it is currently computing the next
| > | move. To see if it is also your case, try to set the difficulty level
| > | of the chess engine to easy: it should do the next move in a few
| > | seconds (depending on your CPU power).
| >
| > How can I set the level of the chess engine with the knights-frontend?
|
| File -> New Match, then click on "Computer" radio button, where you can
| choose the chess engine and the player strength.
|
| Regards,

Ah, it works if the programms play on an easy player stregth.


pgp0IBLYQYyk5.pgp
Description: PGP signature


Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-07-14 Thread Alex Midgley
I don't think this bug is related to CPU utilization.  If you set a log
in the chess engine configuration dialog, you can see that Knights tries
to set the time with a command like
time 12000
when the command should be
time number_of_moves/minutes
so the AI thinks it has a lot of time to search for a move and appears
to lock up.  Changing difficulty settings makes no difference.

I am unable to play against both GNUChess 5.07 and Crafty 20.9 because
of this.  Both programs play fine in command mode and with XBoard.  I
don't know why it would work for some people and not for others.

-alex



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-07-18 Thread Tommaso Moroni
reopen 366181 [EMAIL PROTECTED]
thanks

Hi Alex!
I'm reopening the bug and setting your email address as the originator address,
so when it will be closed you will be notified.


On Fri, Jul 14, 2006 at 09:02:58PM -0500, Alex Midgley wrote:
> I don't think this bug is related to CPU utilization.  If you set a log
> in the chess engine configuration dialog, you can see that Knights tries
> to set the time with a command like
> time 12000
> when the command should be
> time number_of_moves/minutes

The only reference I've found on the web about the xboard protocol
(http://www.tim-mann.org/xboard/engine-intf.html)
seems to say that the time only sets a timer which doesn't have any influence
on the time spent searching for a move. However I could easily be wrong! :)
Do you know any other documentation about it?

Moreover I looked a bit closer to the gnuchess logs and I've found that knights
indeed uses some weird commands in order to set the difficulty.
In the next days I'll work on it and keep you informed.


Thanks for your help!
-- 
Tommaso Moroni
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-07-30 Thread Alex Midgley
I dug a little deeper, and it turns out that the form of the time
command that Knights is using is correct by the xboard specification,
and Crafty handles it correctly when it is in xboard mode.

The problem appears to be the st command, which sets the search time
limit, equivalent to a time limit per move.  I commented out the line
which sends this command in proto_xboard.cpp (line 368) and now Crafty
runs just fine under Knights.  This command is sent with a smaller value
when the chess engine strength is set to easy, which is why that
appeared to fix the problem.

If the st command isn't removed as I did, it should at least send a time
that is less than the remaining time as set by the time command.  The
default settings send "st 131072" which sets a time per move of over 21
minutes.  Clearly this is nonsensical if the engine has only fifteen
minutes (for example) to complete the entire game.

-alex

On Tue, 2006-07-18 at 20:32 +0200, Tommaso Moroni wrote:
> reopen 366181 [EMAIL PROTECTED]
> thanks
> 
> Hi Alex!
> I'm reopening the bug and setting your email address as the originator 
> address,
> so when it will be closed you will be notified.
> 
> 
> On Fri, Jul 14, 2006 at 09:02:58PM -0500, Alex Midgley wrote:
> > I don't think this bug is related to CPU utilization.  If you set a log
> > in the chess engine configuration dialog, you can see that Knights tries
> > to set the time with a command like
> > time 12000
> > when the command should be
> > time number_of_moves/minutes
> 
> The only reference I've found on the web about the xboard protocol
> (http://www.tim-mann.org/xboard/engine-intf.html)
> seems to say that the time only sets a timer which doesn't have any influence
> on the time spent searching for a move. However I could easily be wrong! :)
> Do you know any other documentation about it?
> 
> Moreover I looked a bit closer to the gnuchess logs and I've found that 
> knights
> indeed uses some weird commands in order to set the difficulty.
> In the next days I'll work on it and keep you informed.
> 
> 
> Thanks for your help!



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#366181: knights: Can't play against AI (gnuchess, sjeng, crafty)

2006-08-04 Thread Tommaso Moroni
On Sun, Jul 30, 2006 at 02:41:23PM -0500, Alex Midgley wrote:
> I dug a little deeper, and it turns out that the form of the time
> command that Knights is using is correct by the xboard specification,
> and Crafty handles it correctly when it is in xboard mode.
> 
> The problem appears to be the st command, which sets the search time
> limit, equivalent to a time limit per move.  I commented out the line
> which sends this command in proto_xboard.cpp (line 368) and now Crafty
> runs just fine under Knights.  This command is sent with a smaller value
> when the chess engine strength is set to easy, which is why that
> appeared to fix the problem.
> 
> If the st command isn't removed as I did, it should at least send a time
> that is less than the remaining time as set by the time command.  The
> default settings send "st 131072" which sets a time per move of over 21
> minutes.  Clearly this is nonsensical if the engine has only fifteen
> minutes (for example) to complete the entire game.
> 
> -alex

Thanks for your invaluable help!

I will shortly upload a new debian revision of knights with the modification
you suggested.

By the way, I saw that similar problems were reported to the knights bug 
tracking system at sourceforce.net, but unfortunately they haven't been fixed.


Thanks again for your support.

Regards,
-- 
Tommaso Moroni
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]