Swords and Shields conversion.

Posted November 16, 2016 by ilee

Let's get started with converting S&S from StarLogo TNG to StarLogo Nova. 
 

Comments

Submitted by ilee on Wed, 11/16/2016 - 10:46 · Permalink

Shall we start by looking at the set up procedure?  or at the model as a whole?

Submitted by turtle on Wed, 11/16/2016 - 10:57 · Permalink

Here's some basic code to setup with a slider for turtles and for radius.  There's also a setup scattered that uses the first slider but not the second.  What else do we need on setup?

screen shot of slnova setup code for swords & shields

Submitted by ilee on Wed, 11/16/2016 - 11:00 · Permalink

That looks like we can easily convert to SLNova.  What about the agent traits?

Just to see the difference between posting a reply and posting a new comment.  This page looks the same.

Submitted by ilee on Wed, 11/16/2016 - 15:06 · Permalink

I am looking at a file called "Swords and Shields 2012.sltng"  in it, I see that turtles have local variables for their sword and shield (stored as IDs) and the x and y coordinates of sword and shield and the diffs between sword and shield x coords and y coords (used to aim the turtle between the sword and shield)

But can we determine and store IDs of agents in Slnova?
Can we know the range of agent IDs?

Are agents created in order starting with agent 0?  Let me ask Daniel.

--Irene