[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:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0 |
Ø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...
Jon
signature.asc
Description: OpenPGP digital signature
- [Bug-gnubg] gnu board, Don A. Hanlen, 2007/03/12
- Re: [Bug-gnubg] gnu board, Jonathan Kinsey, 2007/03/13
- Re: [Bug-gnubg] gnu board, Don A. Hanlen, 2007/03/13
- Re: [Bug-gnubg] gnu board, Øystein Johansen, 2007/03/13
- Re: [Bug-gnubg] gnu board, Don A. Hanlen, 2007/03/15
- RE: [Bug-gnubg] gnu board, Øystein O. Johansen, 2007/03/16
- Re: [Bug-gnubg] gnu board,
Jonathan Kinsey <=
- RE: [Bug-gnubg] gnu board, Don A. Hanlen, 2007/03/16
- Re: [Bug-gnubg] gnu board, Jim Segrave, 2007/03/18
- Re: [Bug-gnubg] gnu board, Don A. Hanlen, 2007/03/18
- Re: [Bug-gnubg] gnu board, Jim Segrave, 2007/03/19
- Re: [Bug-gnubg] gnu board, Don A. Hanlen, 2007/03/19
- Re: [Bug-gnubg] gnu board, Jim Segrave, 2007/03/21