bugXBoard - Bugs: bug #26127, Enhancement: XBoard support for...


bug #26127: Enhancement: XBoard support for MiniChess 2009

Submitted by:  Bart Massey <po8>
Submitted on:  Thu 09 Apr 2009 09:06:28 AM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Assigned to:  Arun Persaud <apersaud> Open/Closed:  Open
Release:  None

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 03 Nov 2014 04:43:24 PM UTC, comment #4: 

I don't know if there still is any interest in running XBoard with this variant, but XBoard's general variant support in v4.8 is now such that it can run variants like this through configuring by user or engine. E.g. for Mini-Chess 2009, an engine would have to send in response to "protover 2":

feature variants="minichess2009"

and then in response to "variant minichess2009"

setup (PNBRQKpnbrqk) 5x6+0_fairy kqbnr/ppppp/5/5/PPPPP/RNBQK w - - 0 1
piece P& fmWfcF
piece B& BmW

This would then change the board format, setup the initial position, and defines the deviating pieces P and B. A similar effect could be obtained without engine by using the options

-boardWidth 5 -boardHeight 6 -loadPositionFile mini09.fen -pieceToCharTable "PN.RQ........BKpm.rq........bk"

when mini09.fen was a file containing the FEN of the initial position.

So I don't think patches like these still make sense.

H.G. Muller

Tue 06 Oct 2009 06:59:29 PM UTC, comment #3: 

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!

Bart Massey <po8>
Sat 03 Oct 2009 08:22:43 AM UTC, comment #2: 

From: "h.g. muller"
To: -email is unavailable-
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.

Tim Mann <mann>
Project Administrator
Sat 03 Oct 2009 02:02:51 AM UTC, 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.

Arun Persaud <apersaud>
Project AdministratorIn charge of this item.
Thu 09 Apr 2009 09:06:28 AM UTC, original submission:  

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.

Bart Massey <po8>


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

Attach Files:

Attached Files
file #17895:  0001-added-support-for-MiniChess-2009-variant.patch added by po8 (5KiB - text/x-diff - Prerequiste patch in Bug #26126)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mann (Posted a comment)
  • -email is unavailable- added by apersaud (Posted a comment)
  • -email is unavailable- added by po8 (Submitted the item)

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

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-10-03 mann StatusNeed Info => Postponed
    2009-10-03 apersaud StatusNone => Need Info
        Assigned toNone => apersaud
    2009-04-09 po8 Attached File- => Added 0001-added-support-for-MiniChess-2009-variant.patch, #17895

    Back to the top

    Powered by Savane 3.5