Menu

#166 King captures own Rook when castling

v.4.7
closed
nobody
None
5
2022-04-27
2022-01-13
chessontilt
No

Version: latest, 4.7.1 on linux debian.

Behavior: king captures its own Rook while castling if the king is placed over the rook. I discovered this quite by accident because castling this way works on many online sites.

   Sample notation generated, (graphically the rook is 'captured' by the king, reproduced for both sides).

   1.   e4      e5    
   2.   Nf3     Nc6   
   3.   Bb5     a6    
   4.   Ba4     Nf6   
   5.   Kxh1    Bc5   
   6.   c3      Kxh8

   screenshot attached.
1 Attachments

Discussion

  • Roelof Berkepeis

    I also use SCID v4.7.1 on Debian (Xubuntu 20.04) but i can NOT reproduce this behaviour : dropping the King on its Rook does not castle, the King flips back to its original square .. indeed, because KxR is an illegal move : Kxh1 never comes .. i almost think you are trolling .. can you attach a short screencast of such castling, including the generated notation ?

     
  • Roelof Berkepeis

    Btw. the game notation in your screenshot has another format as mine : you have 2 columns, but normally SCID gives one line with the variation - you must have typed this notation yourself !?

     
  • chessontilt

    chessontilt - 2022-01-13

    what in the world?...
    both the notation AND the screenshot are literally in the initial post.
    scid happens to be highly customizable. setting the notation window to column view is just a preference.

    i imagine this isn't necessarily something that'll affect every system. but it's happening on mine. whatever the reason, I'd like to find out why (or have it fixed). even if it's something i can change on my particular configuration.

    to clarify with regards to my OS, it's debian bullseye. not a derivative of debian.

    i also ran Scid from the terminal to see if it would trigger an error message, but no luck.
    this issue is also not as outlandish as it may sound, and reading through old bug tickets i came across one that was very similar on a much older build of the app, which is ultimately why i took the time to create a sourceforge account specifically to open this ticket.

     
  • chessontilt

    chessontilt - 2022-01-13

    i have just noticed the screenshot is wrong. my bad. I'll update it when i get out of bed.

     
  • Roelof Berkepeis

    you write " setting the notation window to column view is just a preference" .. i did not discover that setting .. i only find menu Options / Preferences / Moves but there is no option as you suggest .. where in the menus do i find the 2 column setting ?

     
    • chessontilt

      chessontilt - 2022-01-13

      The notation window has it's own preference menu -- three little bars right next to the N(otation).
      click on that. There's a sub-menu 'display'. You can change the behavior there. I go back and forth. Sometimes I like the column view, sometimes I don't.

       
  • Fulvio

    Fulvio - 2022-01-13
     
  • Fulvio

    Fulvio - 2022-01-13

    Thanks for reporting the bug, I can confirm the behavior.
    I have already uploaded the code that solves the problem.
    (I'm working to add support for chess960 where castling is indeed played with king takes rook, and I accidentally activated the behavior prematurely)

    P.S.
    I noticed you use the dark theme: what do you think?
    Are there any windows where the readability is not great?

     
    • chessontilt

      chessontilt - 2022-01-13

      Thanks for this! now it makes sense as to why it's happening at all. And glad to hear that 960 implementation is coming up.

      regarding the dark theme, i had done this myself a while back, right around when the original dark theme went live (unbeknownst to me)(dug through all the tcl files and found the values to change). That color scheme was a lot darker. The current one is almost identical to what I had come up with--happy coincidence for me because it meant that I could just switch over.

      As far as readability, I haven't had any issues except for the notation window, but that's easily changed on the user end.

      I did change, if you notice on the screenshot, the namespace bar above and below the board, which on the release are still just white--I don't know if that's a big deal to anyone other than me.

      Incidentally, I've always wondered about the arrows (drawing arrows on the board). I found how to make them thicker, and move their start/end points. But I wonder if there's a way to increase the size of the base of the 'tip' -- more like on chessbase, or like online sites as.

      Also notice I'm using a custom board. On the current build everything seems to be in the /usr/scid/img, which means root is needed to make that change. I know with the books, bases and I think sounds, you can change the directory from within the app. Not so with the boards as far as I've seen.

      Anyway thanks for the response,
      and thanks for your work.

       
  • Fulvio

    Fulvio - 2022-04-27
    • status: open --> closed
     

Log in to post a comment.