bugXBoard - Bugs: bug #27666, "misc shogi" on FICS

 
 

bug #27666: "misc shogi" on FICS

Submitted by:  None
Submitted on:  Sun 11 Oct 2009 11:54:32 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 16 Oct 2009 02:26:03 AM UTC, comment #9:

ok. I'll close this bug then. If the others are still valid we should file a new bugreport, so that we can keep better track of things.

Arun Persaud <apersaud>
Project Administrator
Thu 15 Oct 2009 09:40:46 PM UTC, comment #8:

I can confirm that the bsetup and disconnect problem are server errors. The hack I made supports variable board size, and I initialize it in th boad-setup routin that starts a new game. Apparently bsetup uses another routine that does not set nr of ranks and files, so you get sent a 0x0 board!

The disconnect is caused by a board that is the initial position minus Ke1, Ke8, Rh1 and Rh8. Presumably the backward command does not know how to take back O-O...

I still have to try reproducing the FICS animation problem in Suicide.

H.G. Muller

Anonymous
Thu 15 Oct 2009 08:40:33 AM UTC, comment #7:

With the lastest git my points are fixed.
I cannot decide for:
1. the bug mentioned in comment #6.
2. "bsetup" on VICS (xboard or server issue?)

Thanks!

Anonymous
Tue 13 Oct 2009 04:39:56 PM UTC, comment #6:

Get Move List has always been necessary for variant recognition, as ICS simply don't send any variant indication with their boards. When al variants were played on 8x8 boards with the same pieces this was a whole lot less critical, though. In ICS mode the ICS send a new board on every move, so it doesn't matter a whole lot what WinBoard thinks of the legality of the move, as long as it displays the new position it received. (Which it always does.)

I already fixed the problem you notice in Gothic and e-mailed the patch to Arun yesterday, but I see he did not commit it to git yet.

You seem to have stumbled on nother bug, though. That animation stops when you have no King in suicide suggests that it considers the moves illegal, and just displays the new board. This is not supposed to happen, so I looked at the CheckTest code, and it turns out I introduced a bug there: when it finds no King I return a check code, for the benifit of -variant atomic, to make it consider moves that destroy its own King illegal (so MateTest would work). But stupidly I did not reckon that this could also happen in suicide / giveaway. So I should limit this no-king = in-check patch to -variant atomic only.

The other things indeed sound like server issues. The "Disconnecting you from game..." message typically occurs when the ICS finds no white and black Kings on the board. (Note that the open-source version of the Chessd server does not support suicide or atomic.) I should be able to see in the error log here what board the ICS actually was analysing when it came to this verdict.

H.G. Muller

Anonymous
Tue 13 Oct 2009 03:46:40 PM UTC, comment #5:

Yes, I already noticed, that "Get move list" is now necessary for proper variant recognition. Otherwise observing a suicide game (with xboard in normal mode) shows some effects, like move animation disabled, when kings are not on the board.

"misc shogi" is now working.

In the gothic case, I still get wrong piece placement when typing the following after a fresh login:

ex admin 36

A "refresh" command (or making a move) repairs the positions. No segfaults any more.

Other observations on "VICS" (probably server issues):

1.
command "bsetup" opens xboard error window with "Failed to parse board string..."

2.
ex admin 31
forward 999999
backward 999999

gives this output:

Game 0: GuestIAEP backs up 999999 moves.
Game 0: Beginning of game.
Disconnecting you from game number 1.

This disconnection only happens with some games.

Anonymous
Mon 12 Oct 2009 05:18:04 PM UTC, comment #4:

OK, I fixed the Gothic examining case on the ICS. Unfortunately the ICS handles it (like any variant switch, e.g. normal -> crazyhouse) in such a way that you get the board first, without knowing what the variant is, and only sends you the variant name when you request a move list. XBoard could not handle this without patching up the code to switch variant during an (ICS) game, to recognize more variants.

Now patched that as well, examining of all variants should now be possible. I had never used examine mode on an ICS, so I probably did not fully test it; If there is still something wrong, let me know.

H.G. Muller

Anonymous
Sun 11 Oct 2009 09:57:40 PM UTC, comment #3:

For me it did, except the Gothic case, which I think is a server problem, not an XBoard problem. (OK, admitted, a segfault is not the best kind of error message...)

H.G. Muller

Anonymous
Sun 11 Oct 2009 09:49:36 PM UTC, comment #2:

commited patch by HGM. Does this fix this bug?

Arun Persaud <apersaud>
Project Administrator
Sun 11 Oct 2009 06:31:33 PM UTC, comment #1:

Well, one thing is sure: this is not Shogi. Shogi is played on a 9x9 board.

There is no way to prevent ICS operators picking a name for their boards that is identical to the name of an XBoard variant, while it is in fact a board for an unrelated variant. It can run a suicide game under the name crazyhouse, or call nocastle frc, etc. This is a good way to wreck proper operation of the client. In general this should be considered an error of the ICS.

In this particular case it could be solved by beefing up the variant-recognition heuristic, to give priority to recognizing 'misc' over 'shogi', and recognize it as 'normal', so that 'misc shogi' would be recognized as 'normal'. Would this be worth it?

H.G. Muller

Anonymous
Sun 11 Oct 2009 11:54:32 AM UTC, original submission:

Not that I will ever need this, but:

Logon to FICS and type:

ex b misc shogi

Wrong board appears (compared to xboard 4.2.7).
Move a white piece (eg. a3-a4) -> Segmentation fault.

A similar thing happens, when you try to examine a gothic game on "the Variant Chess Server" (playing the game works, though).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by apersaud (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 16 Oct 2009 02:26:03 AM UTCapersaudStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 11 Oct 2009 09:49:36 PM UTCapersaudStatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup1