From jing_x53@hotmail.com Fri Mar 30 00:34:13 2001 Received: from hotmail.com (f227.law8.hotmail.com [216.33.241.227]) by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f2TMYC323256 for ; Fri, 30 Mar 2001 00:34:13 +0200 (MET DST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 29 Mar 2001 14:34:06 -0800 Received: from 209.128.164.202 by lw8fd.law8.hotmail.msn.com with HTTP; Thu, 29 Mar 2001 22:34:06 GMT X-Originating-IP: [209.128.164.202] From: "Jing Xu" To: prolog@swi.psy.uva.nl Date: Thu, 29 Mar 2001 16:34:06 -0600 Mime-Version: 1.0 Content-Type: text/html Message-ID: X-OriginalArrivalTime: 29 Mar 2001 22:34:06.0456 (UTC) FILETIME=[5D375780:01C0B8A0] Subject: [SWIPL] help
I am learning prolog language. I have a project. Here is the request:
Use prolog language to draw a square grid of 50 by 50 locations to simulate a soccer field, place each team's soccer players in the own quarters at the start of game.  Show empty locations with 'o' and filled locations with 'a' for players of one team and with'b' for players of the other team.  The ball is shown with an '*'.  each player can see the entire field, can kick the ball, can drible the ball, and can pass the ball.  Devise strategies for individual players.Simulate the game situation and show the runs.  The user can freeze the game or change the position of the ball at will during the game. Instructions that result in leaving the grid or moving on a location already occupied should be avoided. 
How to draw the grid? Can I use write statement? How to set the players on the field? Can I write like this (suppose we have two teams, one is A, the other is B):
start_pos(1A, 5, 5)
start_pos(2A, 5, 30)
.......
Does anyone have ideas?
 
Thank you
 
 
Jing


Get your FREE download of MSN Explorer at http://explorer.msn.com