Bug in Simon or Petir?

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Bug in Simon or Petir?

Postby Guenther Simon » 30 Jan 2005, 15:01

At first sight it looks like a bug in Petir,
(playing a move for the wrong side)
but I wonder why this only happened vs. Simon so far?

Guenther

Code: Select all
recognized 'normal' (-1) as variant normal
WinBoard 4.2.7 + Petir_22
Reset(1, 0) from gameMode 0
recognized 'normal' (-1) as variant normal
GameEnds(0, (null), 2)
StartChildProcess (dir="c:\WinBoard\Petir_22") Petir_22
541 >first : xboard
protover 2
611 <first : feature done=0 myname="Petir 2.2" analyze=0 time=1 name=1 san=0 colors=0 setboard=1 reuse=0
611 >first : accepted done
611 >first : accepted myname
611 >first : accepted analyze
611 >first : accepted time
611 >first : accepted name
611 >first : accepted san
611 >first : accepted colors
611 >first : accepted setboard
611 >first : accepted reuse
611 <first : feature done=1
611 >first : accepted done
621 >first : new
random
621 >first : level 40 3 0
621 >first : post
621 >first : hard
621 >first : easy
621 >first : force
StartChildProcess (dir="c:\WinBoard\Simon_11") Simon_11
1122 >second: xboard
protover 2
1122 <second: simon v1.1 16 mb hash
1122 <second:
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 8 |<r>|<n>|<b>|<q>|<k>|<b>|<n>|<r>|
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 7 |<p>|<p>|<p>|<p>|<p>|<p>|<p>|<p>|
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 6 |   |   |   |   |   |   |   |   |
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 5 |   |   |   |   |   |   |   |   |
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 4 |   |   |   |   |   |   |   |   |
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 3 |   |   |   |   |   |   |   |   |
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 2 |[P]|[P]|[P]|[P]|[P]|[P]|[P]|[P]|
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second: 1 |[R]|[N]|[B]|[Q]|[K]|[B]|[N]|[R]|
1122 <second:   +---+---+---+---+---+---+---+---+
1122 <second:     a   b   c   d   e   f   g   h
1122 <second: 1 feature done=0
1122 <second: feature ping=1 setboard=1 time=1 variants=normal
1122 >second: accepted ping
1122 >second: accepted setboard
1122 >second: accepted time
1122 >second: rejected variants
1122 <second: feature sigint=0 sigterm=0 colors=0 analyze=0
1122 >second: accepted sigint
1122 >second: accepted sigterm
1122 >second: accepted colors
1122 >second: accepted analyze
1122 <second: feature myname="simon v1.1"
1122 >second: accepted myname
1122 <second: feature done=1
1122 >second: accepted done
1132 >second: new
random
1132 >second: level 40 3 0
1132 >second: post
1132 >second: hard
1132 >second: easy
1132 >second: ping 1
1132 >second: force
1132 >first : computer
1132 >first : name simon v1.1
1132 >second: computer
1132 >first : time 18000
otim 18000
1132 >first : go
1182 <second: pong 1
1182 <second:
1392 <first : move d2d4
1392 >second: time 18000
otim 17974
1392 >second: d2d4
1392 >second: go
1442 <second: 0 0 0 0 (Book)
1442 <second: move d7d5
Interrupting first
1442 >first : time 17974
otim 17995
1442 >first : d7d5
1733 <first : move g1f3
1733 >second: time 17995
otim 17944
1733 >second: g1f3
1743 <second: 0 0 0 0 (Book)
1743 <second: move g8f6
Interrupting first
1743 >first : time 17944
otim 17994
1743 >first : g8f6
2003 <first : move c7c6
2003 >second: time 17994
otim 17918
2003 >second: c7c6
GameEnds(31, White wins on time, 4)
Interrupting first
181952 >first : result 1-0 {White wins on time}
181952 >second: result 1-0 {White wins on time}
181952 >first : quit
181952 >second: force
181952 >second: ping 2
Exiting: Match Petir 2.2 vs. simon v1.1: final score 1-0-0
GameEnds(0, (null), 2)
181952 >second: quit



Code: Select all
recognized 'normal' (-1) as variant normal
WinBoard 4.2.7 + Simon_11
Reset(1, 0) from gameMode 0
recognized 'normal' (-1) as variant normal
GameEnds(0, (null), 2)
StartChildProcess (dir="c:\WinBoard\Simon_11") Simon_11
541 >first : xboard
protover 2
541 <first : simon v1.1 16 mb hash
541 <first :
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 8 |<r>|<n>|<b>|<q>|<k>|<b>|<n>|<r>|
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 7 |<p>|<p>|<p>|<p>|<p>|<p>|<p>|<p>|
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 6 |   |   |   |   |   |   |   |   |
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 5 |   |   |   |   |   |   |   |   |
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 4 |   |   |   |   |   |   |   |   |
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 3 |   |   |   |   |   |   |   |   |
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 2 |[P]|[P]|[P]|[P]|[P]|[P]|[P]|[P]|
541 <first :   +---+---+---+---+---+---+---+---+
541 <first : 1 |[R]|[N]|[B]|[Q]|[K]|[B]|[N]|[R]|
541 <first :   +---+---+---+---+---+---+---+---+
541 <first :     a   b   c   d   e   f   g   h
541 <first : 1 feature done=0
541 <first : feature ping=1 setboard=1 time=1 variants=normal
541 >first : accepted ping
541 >first : accepted setboard
541 >first : accepted time
541 >first : rejected variants
541 <first : feature sigint=0 sigterm=0 colors=0 analyze=0
541 >first : accepted sigint
541 >first : accepted sigterm
541 >first : accepted colors
541 >first : accepted analyze
541 <first : feature myname="simon v1.1"
541 >first : accepted myname
541 <first : feature done=1
541 >first : accepted done
551 >first : new
random
551 >first : level 40 3 0
551 >first : post
551 >first : hard
551 >first : easy
551 >first : ping 1
551 >first : force
StartChildProcess (dir="c:\WinBoard\Petir_22") Petir_22
1052 >second: xboard
protover 2
1052 <first : pong 1
1052 <first :
1152 <second: feature done=0 myname="Petir 2.2" analyze=0 time=1 name=1 san=0 colors=0 setboard=1 reuse=0
1152 >second: accepted done
1152 >second: accepted myname
1152 >second: accepted analyze
1152 >second: accepted time
1152 >second: accepted name
1152 >second: accepted san
1152 >second: accepted colors
1152 >second: accepted setboard
1152 >second: accepted reuse
1152 <second: feature done=1
1152 >second: accepted done
1162 >second: new
random
1162 >second: level 40 3 0
1162 >second: post
1162 >second: hard
1162 >second: easy
1162 >second: force
1162 >first : computer
1162 >second: computer
1162 >second: name simon v1.1
1162 >first : time 18000
otim 18000
1162 >first : go
1162 <first : 0 0 0 0 (Book)
1172 <first : move c2c4
1172 >second: time 18000
otim 17999
1172 >second: c2c4
1172 >second: go
1703 <second: move e7e6
1703 >first : time 17999
otim 17946
1703 >first : e7e6
1703 <first : 0 0 0 0 (Book)
1703 <first : move d2d4
Interrupting second
1703 >second: time 17946
otim 17999
1703 >second: d2d4
1983 <second: move g8f6
1983 >first : time 17999
otim 17918
1983 >first : g8f6
1993 <first : 0 0 0 0 (Book)
1993 <first : move b1c3
Interrupting second
1993 >second: time 17918
otim 17998
1993 >second: b1c3
2243 <second: 4 960 1 1391 b1c3 f8b4 g1f3 b8c6
2253 <second: 5 932 1 4023 g1f3 b7b5 b1c3 b5c4 c1f4
2344 <second: 6 956 11 36409 b1c3 b8c6 g1f3 d7d5 c4d5 e6d5
2424 <second: 7 644 19 68352 g1f3 f6e4 d1d3 e4g3 h2g3 f8b4 d3c3
2464 <second: 7 893 22 81390 d1d3 b8c6 g1f3 f8b4 b1c3 d7d5 c4d5
2514 <second: 7 946 28 101860 d1d3 b8c6 b1c3 c6b4 d3d1 d7d5 b2b3
2584 <second: 7 970 35 125337 b1c3 b8c6 g1f3 f8e7 d4d5 e6d5 c4d5
2824 <second: 8 344 59 249888 d1d3 b8c6 g1f3 f8b4 c1g5 c6e5 f3e5
2884 <second: 8 863 64 271504 c1d2 b8c6 b1c3 c6d4 d2f4 f8c5 g1f3 d4f3
4366 <second: 9 967 212 878697 b1c3 b8c6 g1f3 d7d5 e2e3 f8b4 f1d3 e8g8 e1g1
5348 <second: move b1c3
5348 >first : time 17998
otim 17583
5348 >first : b1c3
GameEnds(32, Black wins on time, 4)
185337 >first : result 0-1 {Black wins on time}
Interrupting second
185337 >second: result 0-1 {Black wins on time}
185337 >first : force
185337 >first : ping 2
185337 >second: quit
Exiting: Match simon v1.1 vs. Petir 2.2: final score 0-1-0
GameEnds(0, (null), 2)
185337 >first : quit
User avatar
Guenther Simon
 
Posts: 794
Joined: 26 Sep 2004, 19:49
Location: Regensburg, Germany

Re: Bug in Simon or Petir?

Postby Dan Honeycutt » 31 Jan 2005, 18:06

Everything looks normal for the first couple moves, 1. c4 e6 2. d4 Nf6. Then:

Guenther Simon wrote:
Code: Select all
<first : move b1c3
Interrupting second
1993 >second: time 17918
otim 17998
1993 >second: b1c3
2243 <second: 4 960 1 1391 b1c3 f8b4 g1f3 b8c6
2253 <second: 5 932 1 4023 g1f3 b7b5 b1c3 b5c4 c1f4
2344 <second: 6 956 11 36409 b1c3 b8c6 g1f3 d7d5 c4d5 e6d5
2424 <second: 7 644 19 68352 g1f3 f6e4 d1d3 e4g3 h2g3 f8b4 d3c3
2464 <second: 7 893 22 81390 d1d3 b8c6 g1f3 f8b4 b1c3 d7d5 c4d5
2514 <second: 7 946 28 101860 d1d3 b8c6 b1c3 c6b4 d3d1 d7d5 b2b3
2584 <second: 7 970 35 125337 b1c3 b8c6 g1f3 f8e7 d4d5 e6d5 c4d5
2824 <second: 8 344 59 249888 d1d3 b8c6 g1f3 f8b4 c1g5 c6e5 f3e5
2884 <second: 8 863 64 271504 c1d2 b8c6 b1c3 c6d4 d2f4 f8c5 g1f3 d4f3
4366 <second: 9 967 212 878697 b1c3 b8c6 g1f3 d7d5 e2e3 f8b4 f1d3 e8g8 e1g1
5348 <second: move b1c3
5348 >first : time 17998
otim 17583
5348 >first : b1c3
GameEnds(32, Black wins on time, 4)
185337 >first : result 0-1 {Black wins on time}
Interrupting second
185337 >second: result 0-1 {Black wins on time}
185337 >first : force
185337 >first : ping 2
185337 >second: quit
Exiting: Match simon v1.1 vs. Petir 2.2: final score 0-1-0
GameEnds(0, (null), 2)
185337 >first : quit


Simon plays 3. Nc3 then the log says "Interrupting second" but I don't see anything like "quit" or "?" actually sent to Petir. All that is sent is Simon's b1c3. But then Petir clearly thinks it's white - it starts to think and all the moves it considers (and the one it finally plays) are white moves.

From the time Petir's invalid b1c3 is sent to Simon I can tell what happened. When Simon receives input it looks in its command list (where it won't find b1c3) then it looks in its own generated move list (where it also won't find b1c3). Simon has no test to determine "this is supposed to be a move, but it's bad". Not finding the input in the command list or the move list, Simon ignores it. So it waits for more input till it loses on time.

Best
Dan H.
Dan Honeycutt
 
Posts: 167
Joined: 28 Sep 2004, 15:49
Location: Atlanta Georgia, USA


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 24 guests