swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Duplicate objects in a grid2d?


From: Marie-Edith Bissey
Subject: Duplicate objects in a grid2d?
Date: Sun, 4 Jun 2000 13:04:53 +0100 (WET DST)

Dear all,

I have a program in which agents are created, found a random position
in the world and displayed in this world through a raster. At
creation, I get, for instance:

player 0 is at (8,0)
player 1 is at (7,6)
player 2 is at (7,1)
player 3 is at (6,8)
...
and so on. (the world is a square of size equal to the number of
agents).

On the raster graph, I see agents displayed as I would expect. The
only problem there is that I cannot see the probe of some agents at
the border (error message that coordinates are wrong ?!?)

Now, the bigger problem is that when I ask the grid2d (world) to tell
me what it has at each position, I get some players twice (at
different positions):
at (0,0) nil
at (0,1) there is player 0...
at (6,6) there is player 3...
at (6,8) there is player 3...
at (7,1) there is player 2...
at (7,6) there is player 1...
at (7,8) there is player 1
at (8,0) there is player 0
.....

-  this happens at the creation of players, and just before that, the
   grid2d only contains "nil" objects
-  this does not happen with all players! out of 8 players,
   duplication is only for players 0,1,3 and 6.
-  the duplicate players do not appear on the raster graph...
-  the only "common feature" I find in the duplicate players is that
   one of a coordinates is on a border (0 or 8), either in their
   "real" position or their duplicated one. (but then, player 5 is at
   (4,0) and is not duplicated...)

Therefore, I would like to know whether someone has already observed
something like that. 
I can send the code to anyone interested!

Thank you very much in advance,

Marie-Edith.

__________________________________________________________________

Marie-Edith Bissey                
Universita` del Piemonte Orientale "Amedeo Avogadro"
Facolta` di Science Politiche         email: address@hidden
Corso Borsalino 50                    tel: +39-0131-283749
15 100 Alessandria -- ITALIA          fax: +39-0131-263030



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]