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

Re: [computer-go] Event-driven programming



> On Friday, January 16, 2004, at 01:36  AM, Patrick Stiegeler wrote:
>
>> dear peter,
>>
>> i think, i did something like what you call "event-driven
>> programming". i use a singleton which i call a NotificationServer and
>> which handles  all
>> the message passing:
>
> So  you only have a single NotificationServer?  How do you determine
> which listeners get which events ... or do you just send every event to
> all listeners in the entire system?

If there is excellent documentation for the interface, my preference,
would be for the listeners to be able to register for events and register
generated events.  Otherwise, providing a list of events might be easier
for everyone involved.

One other question, will some modules be able to generate events?  Will
modules be able to set up their own event servers to incorporate
information from other machines(i.e. if two modules could use information
about ladders, maybe a joseki and a tesuji module will they both be able
to use a module which reads ladders?)

Would it be possible to code an event server,client object that could be
included in each module?

Is there any way to provide for thinking about a move during the opponents
turn?

Sincerely,

Robin Kramer


_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://computer-go.org/mailman/listinfo/computer-go