bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] A question - Which die is still available during a move?


From: Holger
Subject: Re: [Bug-gnubg] A question - Which die is still available during a move? - and a request
Date: Thu, 13 Feb 2003 20:01:46 +0100 (MET)

> On Thu 13 Feb 2003 (00:41 +0100), Holger wrote:
> > On Tue, 11 Feb 2003 01:08:40 +0100, Jim Segrave wrote:
> > Your pip count idea is quite good. Unfortunately however, I can't just
> > use PipCount(), because it doesn't work on bd->points, the other board
> > representations aren't updated in between a move, in the middle of
> > board_pointer bd->points isn't complete (board_start_drag() picks a
> > chequer up), and a few other things. But I've solved this already.
>  
> > For bear-off the pip count difference might not say much, though.
> > But without a challenge there'd be no fun. :-)
> 
> Actually - looking briefly at update_move in gtkboard.c, it looks like
> it's doing what you asked for.

What GNUbg does right now (at least if I understood it) in order to
determine whether a move is legal is a little like trial and error. First it 
makes a
move and when it sees that it wasn't ok, it reverts and tries a different
one. It even draws and deletes the chequers in the process, but for today's
speed this isn't visible. I can't use this. I'm painting the rectangles during
the dragging phase. Unfortunately, update_move() and place_chequer_or_revert()
have (for my purpose severe) side effects as they change the board.

> > What I had in mind is a bit different. It's actually a target help for
> > when you drag a chequer. The possible drag targets for the dragged
> > chequer get indicated by coloured rectangles. I've seen this in
> > JavaFIBS.
> 
> Interesting idea, I sort of assumed most people played by clicking on
> the chequer they wanted to move rather than dragging.

Well, usually I neither drag the chequers. But especially with doubles or
big normal rolls it's sometimes easier not to count whether I can hit, but just
drag the man a little so that those target helps appear. And for somebody
who is completely new to bg, they could learn the theory just by trying this
way.

Regards,

Holger

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]