From jan@swi.psy.uva.nl Wed Sep 26 15:28:25 2001
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f8QDSPv19861;
	Wed, 26 Sep 2001 15:28:25 +0200 (MET DST)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id f8QDSPF18874;
	Wed, 26 Sep 2001 15:28:25 +0200
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: "Alexander Celle T." <acelle@virtualia.cl>, <prolog@swi.psy.uva.nl>
Subject: Re: [SWIPL] Prolog and games
Date: Wed, 26 Sep 2001 15:24:11 +0200
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
References: <JAELKAOHOKMCGMJCHDBCKEADDEAA.acelle@virtualia.cl>
In-Reply-To: <JAELKAOHOKMCGMJCHDBCKEADDEAA.acelle@virtualia.cl>
MIME-Version: 1.0
Message-Id: <0109261528250L.15353@gollem>
Content-Transfer-Encoding: 8bit

On Wed, 29 Aug 2001, Alexander Celle T. wrote:
>Does anyone know how to make two prolog programs play against each other
>(i.e. tic tac toe??)

If you want to keep it simple you just load both players in the same
Prolog process and write a wrapper joining the programs.

If you want two real programs use networking.  There are many
solutions to do this, varying between simple usage of the socket
library to HTTP, CORBA, FIPA, etc.  Without external requirements I'd
use the socket library directly and exchange Prolog terms using
read/write on the streams.

	--- Jan

