473,394 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

interprogram communication

I am doing a project for college event.
It is named AI WARS.
Basic idea is that contestants will be given a signature of a function
for input to their program.

There will be a game bet 2 contestants. Each has to write an algorithm
for his next move.
The game is Othello/Reversi .

So I have writen the game engine part and we have decided the program
signature to be provideed to the contestants.

My problem is how do I connect the 3 programs
1. The Game Engine
2. Contestant 1 Program
3. Contestant 2 Program

I want a way in which my game engine will give control to the
contestant's programs one at a time alternately for the next moves of
each player alternately.

Can anyone suggest me something to carry out the inter program
communication ?

Aug 28 '07 #1
6 1699
"Ajinkya" <ka*********@gmail.comschrieb im Newsbeitrag
news:11**********************@x35g2000prf.googlegr oups.com...
>I am doing a project for college event.
It is named AI WARS.
Basic idea is that contestants will be given a signature of a function
for input to their program.

There will be a game bet 2 contestants. Each has to write an algorithm
for his next move.
The game is Othello/Reversi .

So I have writen the game engine part and we have decided the program
signature to be provideed to the contestants.

My problem is how do I connect the 3 programs
1. The Game Engine
2. Contestant 1 Program
3. Contestant 2 Program

I want a way in which my game engine will give control to the
contestant's programs one at a time alternately for the next moves of
each player alternately.

Can anyone suggest me something to carry out the inter program
communication ?
Have a look at
http://en.wikipedia.org/wiki/Inter-p..._communication

Bye, Jojo
Aug 28 '07 #2
On Aug 28, 8:59 am, Ajinkya <kaleajin...@gmail.comwrote:
I am doing a project for college event.
It is named AI WARS.
Basic idea is that contestants will be given a signature of a function
for input to their program.

There will be a game bet 2 contestants. Each has to write an algorithm
for his next move.
The game is Othello/Reversi .

So I have writen the game engine part and we have decided the program
signature to be provideed to the contestants.

My problem is how do I connect the 3 programs
1. The Game Engine
2. Contestant 1 Program
3. Contestant 2 Program

I want a way in which my game engine will give control to the
contestant's programs one at a time alternately for the next moves of
each player alternately.

Can anyone suggest me something to carry out the inter program
communication ?
http://sourceforge.net/projects/netothello/

Aug 29 '07 #3
"Ajinkya" <ka*********@gmail.comwrote in message
news:11**********************@x35g2000prf.googlegr oups.com...
>I am doing a project for college event.
It is named AI WARS.
Basic idea is that contestants will be given a signature of a function
for input to their program.
[...]

Some quick info:

http://groups.google.com/group/comp....86197f1882dc56

http://groups.google.com/group/comp....45e6fe981788e7

Read both of those and follow all links...

Aug 29 '07 #4
On 28 Aug, 16:59, Ajinkya <kaleajin...@gmail.comwrote:
I am doing a project for college event.
It is named AI WARS.
Basic idea is that contestants will be given a signature of a function
for input to their program.

There will be a game bet 2 contestants. Each has to write an algorithm
for his next move.
The game is Othello/Reversi .

So I have writen the game engine part and we have decided the program
signature to be provideed to the contestants.

My problem is how do I connect the 3 programs
1. The Game Engine
2. Contestant 1 Program
3. Contestant 2 Program

I want a way in which my game engine will give control to the
contestant's programs one at a time alternately for the next moves of
each player alternately.

Can anyone suggest me something to carry out the inter program
communication ?

Aug 29 '07 #5
On 28 Aug, 16:59, Ajinkya <kaleajin...@gmail.comwrote:
I am doing a project for college event.
It is named AI WARS.
Basic idea is that contestants will be given a signature of a function
for input to their program.

There will be a game bet 2 contestants. Each has to write an algorithm
for his next move.
The game is Othello/Reversi .

So I have writen the game engine part and we have decided the program
signature to be provideed to the contestants.

My problem is how do I connect the 3 programs
1. The Game Engine
2. Contestant 1 Program
3. Contestant 2 Program

I want a way in which my game engine will give control to the
contestant's programs one at a time alternately for the next moves of
each player alternately.

Can anyone suggest me something to carry out the inter program
communication ?
have you considered not making them standalone programs?
Just link the functions into a driver program.
No threads, no IPC. Everyone has to give their
function a unique name (eg. preceed the name with their
initials).
int main (void)
{
Board boad; /* some complex structure */

while (!finished (&board))
{
player1_move (&board);
player2_move (&board);
draw (&board);
}
}

--
Nick Keighley

Aug 29 '07 #6
On Aug 29, 2:11 am, Nick Keighley <nick_keighley_nos...@hotmail.com>
wrote:
On 28 Aug, 16:59, Ajinkya <kaleajin...@gmail.comwrote:


I am doing a project for college event.
It is named AI WARS.
Basic idea is that contestants will be given a signature of a function
for input to their program.
There will be a game bet 2 contestants. Each has to write an algorithm
for his next move.
The game is Othello/Reversi .
So I have writen the game engine part and we have decided the program
signature to be provideed to the contestants.
My problem is how do I connect the 3 programs
1. The Game Engine
2. Contestant 1 Program
3. Contestant 2 Program
I want a way in which my game engine will give control to the
contestant's programs one at a time alternately for the next moves of
each player alternately.
Can anyone suggest me something to carry out the inter program
communication ?

have you considered not making them standalone programs?
Just link the functions into a driver program.
No threads, no IPC. Everyone has to give their
function a unique name (eg. preceed the name with their
initials).

int main (void)
{
Board boad; /* some complex structure */

while (!finished (&board))
{
player1_move (&board);
player2_move (&board);
draw (&board);
}

}

--
Nick Keighley- Hide quoted text -

- Show quoted text -
I thought about this option too!
But we want to give a downloadable game engine for participants to
practice and we cannot give them the code of our engine there.
Is there any other option where I can give a downloadable .exe file
and then the user can link his program and the game engine ?

Thanks in advance,

Regards,
Ajinkya

Aug 29 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Noel | last post by:
Hi, I am a tad confused about if there are any benefits from using asynchronous vs synchronous network communication. As my example, I have been writing a dns lookup stack with a network...
1
by: alederer | last post by:
Hallo! I have the following situation: A db2 v6.1 client on AIX 4.3 (db2level reports U469703) and a OS/390 database version 6.1 . In some situations, I get the following error in my db2...
1
by: xixi | last post by:
i have catalog a remote database on my local db2 server, but now the remote database server with same machine name but the ip address changed, so i remove the old one, and try to catalog again...
3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
3
by: Bryan Christopher | last post by:
Hello All! I have a rather abstract question for some genius out there to answer. I want to integrate communication tracking, for customer relations, into an existing Access DB. What I was going...
2
by: xeyder | last post by:
Hi everyone.. I need help about graph theory ( network problems) .. I have below problem . Does anyone know any existence algorithms or solutions to this problem ?? The Problems is: "...
4
by: Sačo Zagoranski | last post by:
Hi! I'm writing a simple 3D First person shooter game. It is a multiplayer game, where all the players connect to one server.
21
by: dast | last post by:
Hi, I'm having trouble letting my background thread tell my main thread what to do. I'm trying to tell my main thread to open a form, but when my background thread ends, the form that I...
2
by: xeyder | last post by:
Hi everyone.. I need help about graph theory ( network problems) .. I have below problem . Does anyone know any existence algorithms or solutions to this problem ?? The Problems is: " We...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.