[bug #26127] Enhancement: XBoard support for MiniChess 2009

View: New views
6 Messages — Rating Filter:   Alert me  

[bug #26127] Enhancement: XBoard support for MiniChess 2009

by Per Bothner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.gnu.org/bugs/?26127>

                 Summary: Enhancement: XBoard support for MiniChess 2009
                 Project: XBoard
            Submitted by: po8
            Submitted on: Thu 09 Apr 2009 09:06:28 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The attached patch builds on the patch I previously submitted as Bug #26126.
It adds support for MiniChess 2009, whose rules can be found at
http://wiki.cs.pdx.edu/cs542-spring2009/mini-chess/rules.html .  The only
difference between MiniChess 2007 and MiniChess 2009 is that the latter allows
a bishop to move to any adjacent empty square---this permits the bishop to
change color, which is important with a single bishop on a small board.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 09 Apr 2009 09:06:29 AM GMT  Name:
0001-added-support-for-MiniChess-2009-variant.patch  Size: 5kB   By: po8
Prerequiste patch in Bug #26126
<http://savannah.gnu.org/bugs/download.php?file_id=17895>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26127>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@...
http://lists.gnu.org/mailman/listinfo/bug-xboard

[bug #26127] Enhancement: XBoard support for MiniChess 2009

by Per Bothner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of bug #26127 (project xboard):

                  Status:                    None => Need Info              
             Assigned to:                    None => apersaud              

    _______________________________________________________

Follow-up Comment #1:

can you please test if the patch still works against the latest source...
there has been tons of changes. If it is still ok, let me know and I'll apply
it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26127>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@...
http://lists.gnu.org/mailman/listinfo/bug-xboard

Re: [bug #26127] Enhancement: XBoard support for MiniChess 2009

by h.g. muller :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This patch as given is inompatible with the latest source, as the code it
patched
has mostly been changed beyod recognition, because it has been already patched
to do similar things as this patch aims to do (changing board size and such).

The up side is that the new code can be patched really easily to implement this
variant. The promoted archbishop (indicated by 'I' in variant fairy) could
be used
to represent the augmented Bishop, and moves could be added for it in the move
generator.

It is probably better to wait a bit with this until after some code
refactoring: this
variant has deviating gme-end rules for stalemate, and I would really like
to indicate
such rule modification by global flags that could be set from
InitPosition(), so that
the rest of the code could test them in a variant-independent was.
Currently the code
is littered with conditionals like
if(gameInfo.variant == VariantShatranj || gameInfo.variant == VariantXiangi
|| ...)
to dish out the variants where, say, stalemated counts as a loss, which have
been accumulating complexity as I added more variants, and it would be really
good to clean that up as a part of the MiniChess patch.


At 02:02 3-10-2009 +0000, Arun Persaud wrote:

>Update of bug #26127 (project xboard):
>
>                   Status:                    None => Need Info
>              Assigned to:                    None => apersaud
>
>     _______________________________________________________
>
>Follow-up Comment #1:
>
>can you please test if the patch still works against the latest source...
>there has been tons of changes. If it is still ok, let me know and I'll apply
>it.
>
>     _______________________________________________________
>
>Reply to this item at:
>
>   <http://savannah.gnu.org/bugs/?26127>
>
>_______________________________________________
>   Message sent via/by Savannah
>   http://savannah.gnu.org/
>
>
>
>_______________________________________________
>Bug-XBoard mailing list
>Bug-XBoard@...
>http://lists.gnu.org/mailman/listinfo/bug-xboard



_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@...
http://lists.gnu.org/mailman/listinfo/bug-xboard

[bug #26127] Enhancement: XBoard support for MiniChess 2009

by Per Bothner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #2, bug #26127 (project xboard):

From: "h.g. muller"
To: bug-xboard@...
Subject: Re: [Bug-XBoard] [bug #26127] Enhancement: XBoard support for
MiniChess 2009
Date: Sat, 03 Oct 2009 09:11:00 +0200

This patch as given is inompatible with the latest source, as the code it
patched has mostly been changed beyod recognition, because it has been already
patched to do similar things as this patch aims to do (changing board size and
such).

The up side is that the new code can be patched really easily to implement
this variant. The promoted archbishop (indicated by 'I' in variant fairy)
could be used to represent the augmented Bishop, and moves could be added for
it in the move generator.

It is probably better to wait a bit with this until after some code
refactoring: this variant has deviating gme-end rules for stalemate, and I
would really like to indicate such rule modification by global flags that
could be set from
InitPosition(), so that the rest of the code could test them in a
variant-independent was. Currently the code is littered with conditionals like
if(gameInfo.variant == VariantShatranj || gameInfo.variant == VariantXiangi ||
...) to dish out the variants where, say, stalemated counts as a loss, which
have
been accumulating complexity as I added more variants, and it would be really
good to clean that up as a part of the MiniChess patch.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26127>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@...
http://lists.gnu.org/mailman/listinfo/bug-xboard

[bug #26127] Enhancement: XBoard support for MiniChess 2009

by Per Bothner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of bug #26127 (project xboard):

                  Status:               Need Info => Postponed              


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26127>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@...
http://lists.gnu.org/mailman/listinfo/bug-xboard

[bug #26127] Enhancement: XBoard support for MiniChess 2009

by Per Bothner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #3, bug #26127 (project xboard):

Yeah, I'm in no hurry to re-do this work.  You folks get the codebase stable
again, and I'll poke through it and get MiniChess working at that point.

Thanks much for looking at it!

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26127>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@...
http://lists.gnu.org/mailman/listinfo/bug-xboard