MASON-INTEREST-L Archives

January 2017

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Fri, 27 Jan 2017 22:02:38 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (14 lines)
On Jan 27, 2017, at 9:51 PM, Stewart Aitken <[log in to unmask]> wrote:

> Here are the three files.
> If I initialise and then step singly it works completely as expected.
> However, if I initialise and then run that is when we see the duplication in the display frame.

I can't replicate that on OS X.  However, I do note that your code freaks out after about 41 agents because you run out of space in your grid, and your method placeFirstAgent(...) goes into an infinite loop.

> Re the Border edges, I can get them up to ObjectGrid2D( 45, 40) after this they just do not appear.

Hmm, just tried on my box with your code at 100x100 on a 400x400 window and both the gridlines and the borders look great.

Sean

ATOM RSS1 RSS2