buggnubg - Bugs: bug #56730, Add an option to disallow...


bug #56730: Add an option to disallow hit-and-run

Submitter:  Koorosh <koorosh>
Submitted:  Thu 08 Aug 2019 08:46:08 AM UTC
Originator Name:  Koorosh Item Group:  * Feature Request
Category:  * Evaluations Release:  * 1.00 - 1.05Pre
Privacy:  Public Operating System:  * All
Severity:  1 - Wish Open/Closed:  Open
Assigned to:  None Priority:  5 - Normal
Status:  None
* Mandatory Fields

Add a New Comment Rich Markup

Thu 03 Oct 2019 07:46:56 AM UTC, comment #4: 

I want to clarify the hit-and-run rule only applies to the checker that hits the opponent in its own (the checker) home, it should not move in current turn after hitting, all other checkers can move over it without a problem.

In some special cases, this may result in some dies to be unplayable because only the checker that hits the opponent could play the dies.

If anyone is interested in working on this issue, please let me know. We could negotiate on how it can be done.

Koorosh <koorosh>
Sun 08 Sep 2019 07:34:08 PM UTC, comment #3: 

I'm not very familiar with the moves generation part of gnubg. I can't really estimate how much work it would take to implement what you wish.

If you want to look at the issue, I think your starting point should be the ApplySubMove() function in eval.c. It handles the play of one die and does some checks to ensure that the move it gets in its arguments is legal.

The difficulty with the rule is that it doesn't involve the play of one isolated die, but an interaction between the plays of both dice. Offhand, I'd say that you will have to somehow record when one submove is a hit in the inner board and then, in the places that call ApplySubMove() 2 to 4 times, check that further submoves don't involve a checker that cannot move.

Philippe Michel <plm>
Group administrator
Sun 08 Sep 2019 09:33:25 AM UTC, comment #2: 

Thanks for your response.

Is it possible to implement this option as a paid feature?
If it's possible could you give us a cost estimation?

If it isn't possible, please kindly guide us to do it ourselves. We have some programmers available but they're not familiar with the GNU BG code base. Can you provide some guidelines for where to start and what changes should be made?

Thank you in advance.

Koorosh <koorosh>
Mon 26 Aug 2019 09:07:24 PM UTC, comment #1: 

It is unlikely such an option will be added.

Merely considering these play as illegal and not making them is likely to lead to awkward play since gnubg was trained assuming they were possible.

Philippe Michel <plm>
Group administrator
Thu 08 Aug 2019 08:46:08 AM UTC, original submission:  

I wanted to ask if it is possible to add an option to disallow hit-and-run in player's home.
This rule is honored in middle east games.

Thank you in advance.

Koorosh <koorosh>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by plm (Posted a comment)
  • -email is unavailable- added by koorosh (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-26 plm Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code