[Top][All Lists]

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

Re: [Bug-gnubg] gnu board

From: Jonathan Kinsey
Subject: Re: [Bug-gnubg] gnu board
Date: Fri, 16 Mar 2007 09:16:27 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: Gecko/20070221 Thunderbird/ Mnenhy/

Øystein O. Johansen wrote:
>> (In truth, the deviations from modularity are a bit surprising...)
> Yes, there is some kind of mess in the code. And the deviations from 
> modularity is really annoying. (I've tried to refactor some thing in GNU 
> Backgammon, but every time I end up *sigh* thinking it's too much work....)
> What if we begin with the board? Write it as a gtk widget. (BTW, is it 
> smart?). What signals a callbacks should we when have? Jon?

Not sure about a GTK widget - ideally the code should work for text
output as well, we can just make up an interface on the lines of:

BoardDisplay(chequer positions, cube value/pos, dice value/pos, player
on roll) - Show the specified position
BoardShowMove(move made) - Move the specified chequers
BoardGetMove() - Get move input from user
BoardStartMove() - Cube or roll decision from user
BoardDiceRolled(dice value) - Show dice roll

The 3d drawing code is quite distinct, I'll take a look at this (might
have a bit of time this weekend).  Will be easier to see where the
problems might be when I start hacking at the code...


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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