On 4/24/07, Ajinkya Kale <[EMAIL PROTECTED]> wrote:

> My program is going to be a driver program which will get instructions(or 
> will call the nextMove() function) alternately from 2 different programs 
> which will be loaded along with my program.
>
> How can we synchronize these three programs and load them simultaneously?
>
> Driver program will judge and guide the flow of the game between the 2 
> participant programs.
>
> Can you guide me on how to go about this?

This sounds like something to be accomplished either by a
multi-threaded program or by multi-processing using some kind of
inter-process communication. This is not something trivial and beyond
what we can show you in an email I think what you need to do is take a
step back and come up with a high-level design (don't worry about
coding details) and determine the overall structure of this game, what
messages need to be sent back and forth between the 'driver' and the
'player' processes (or threads), and so on.

What operating system are you planning to do this on?

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to