Subject: Re: [SWIPL] Prolog and games

From: Jan Wielemaker <[email-masked]>
Date: Wed, 26 Sep 2001 15:24:11 +0200

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