BooLogo Cards - Welcome to Project GUTS Project GUTS by wanghonghx

VIEWS: 6 PAGES: 19

									Operator   Operator




Operator   Operator




Operator   Operator
Input   Input




Input   Input




Input   Input
True   True




True   True




True   True
False   False




False   False




False   False
                                        The maximum number of turtle
In NetLogo, the world can be a torus,
                                         agents that can be created in
        a cylinder, or a box.
                                            StarLogo TNG is 4,096.




In NetLogo, turtles may be created by      In StarLogo TNG, random n
  the observer, by other turtles, or by generates a random integer from 0
               patches.                          to n - 1, inclusive.



    In NetLogo, ifelse must be        In a StarLogo TNG forever block,
 followed by a true/false condition, the agents follow the instructions in
and then two command blocks (zero         turn (one agent following the
  or more statements enclosed in     instructions, then another agent), in
          square brackets).            the same agent order every time.
                                      In StarLogo TNG, a turtle can ask
In NetLogo, random n generates a
                                      another turtle to do something, as
    random integer from 1 to n ,
                                      long as the first one knows the ID
             inclusive.
                                           number of the second.




 The size of a NetLogo turtle agent    In StarLogo TNG, the name of a
         can't be changed.            forever block can't be changed.




 NetLogo variable and procedure        In StarLogo TNG, the name of a
  names may contain spaces.           forever block can be changed.
   StarLogo TNG agents can be
                                     Agents can fall off the edge of the
  controlled by the keyboard or a
                                     StarLogo TNG spaceland and die.
              joystick.



In NetLogo and StarLogo TNG, a dark To conditionally execute one set of
 shade of a base color can be made instructions in NetLogo and StarLogo
 by adding a small value to the base TNG, the ifelse statement/block is
               color.                               used.


   In NetLogo, ifelse must be
followed by a true/false condition, The size of spaceland in StarLogo
and then one command block (zero TNG is fixed at 101 patches across by
 or more statements enclosed in            101 patches down.
         square brackets).
 In NetLogo, a procedure called by a      StarLogo TNG blocks expand
“forever” button must have the name     automatically, as new blocks are
              forever.                             inserted.



         In NetLogo, the
 create-turtles (or create-
                                       The StarLogo TNG breed block is
breeds ) procedure can be used in
                                       used to define a new turtle breed.
  any procedure executed by the
            observer.


                                        In NetLogo, a variable defined for
   There can be only one breed of       members of a turtle breed (using
         turtles in NetLogo.             breeds -own) is automatically
                                       defined for all other breeds as well.
   The maximum number of turtle
                                      The size of a StarLogo TNG agent can
    agents that can be created in
                                                   be changed.
         NetLogo is 4,096.



                                       In NetLogo, if must be followed by a
In NetLogo, you can draw the terrain true/false condition, and then one
 colors with the built-in Edit Terrain     command block (zero or more
             command.                      statements enclosed in square
                                                    brackets).


          In NetLogo, the
                                    In StarLogo TNG, we use the built-in
 create-turtles (or create-
                                      collision block to define the
breeds ) procedure can only be used
                                    behavior of turtle agents that collide.
     in a setup procedure.
In NetLogo, random n generates a
                                   In NetLogo, new turtle shapes can be
   random integer from 0 to n - 1,
                                    drawn with the Turtle Shapes Editor.
             inclusive.



 In NetLogo, there's no way for one
  turtle agent to ask another turtle    There can be several breeds of
   agent to do something; only the         turtles in StarLogo TNG.
         observer can do that.



 In StarLogo TNG, new turtle shapes    A NetLogo command block begins
can be drawn with the Turtle Shapes     and ends with left and right curly
               Editor.                        braces, respectively.
                                        To conditionally execute one of
The NetLogo breed keyword is used        several sets of instructions in
    to define a new turtle breed.        NetLogo, the built-in switch
                                              statement is used.


  In a NetLogo ask statement, the
agents follow the instructions in turn In StarLogo TNG, the built-in hatch
(one agent following the instructions, block allows an agent to create new
  then another agent), in the same                   agents.
       agent order every time.


 To conditionally execute one of two
mutually exclusive alternative sets of
                                       In StarLogo TNG, spaceland can be a
instructions in NetLogo and StarLogo
                                             torus, a cylinder, or a box.
TNG, the ifelse statement/block is
                 used.
                                    In StarLogo TNG, random n is used
In NetLogo, patches are agents that
                                    to generate a random integer from 1
      can follow instructions.
                                               to n , inclusive.



                                      In NetLogo and StarLogo TNG, a light
 The size of a NetLogo turtle agent    shade of a base color can be made
          can be changed.              by adding a small value to the base
                                                     color.



 StarLogo TNG's built-in scatter
                                        In NetLogo, turtles may only be
all block can be used to distribute
                                            created by the observer.
agents randomly all over spaceland.
The size of the NetLogo world is fixed
                                       In StarLogo TNG, turtles may only be
   at 101 patches across by 101
                                            created in the setup block.
            patches down.




   In StarLogo TNG, turtles may be       In StarLogo TNG, the Edit Breed
  created in the setup block, or by    button is used to create breeds, and
     other turtles in other blocks.        to assign shapes to breeds.



                                              In StarLogo TNG, the
 To conditionally execute one of two
                                         create Turtles (or create
mutually exclusive alternative sets of
                                        breed ) block can be used in any
instructions in NetLogo and StarLogo
                                       other built-in block (e.g. a forever
TNG, the if statement/block is used.
                                         block, a run once block, etc.).
   In NetLogo, we use the built-in      In NetLogo, the let keyword is used
collision statement to define the          by the observer to give an agent
behavior of turtle agents that collide.     permission to do something.




                                       StarLogo TNG variable and procedure
Turtle agents can fall off the edge of
                                       names may contain dashes, question
     the NetLogo world and die.
                                          marks, and other punctuation.



                                      In NetLogo and StarLogo TNG, a light
  In NetLogo, the built-in sprout
                                       shade of a base color can be made
 procedure allows a patch agent to
                                      by subtracting a small value from the
      create new turtle agents.
                                                   base color.
  In NetLogo, turtles automatically    The size of a StarLogo TNG agent
 “bounce” off the edge of the world.           can't be changed.




  NetLogo variable and procedure  In StarLogo TNG, the built-in sprout
names may contain dashes, question procedure allows a patch to create
   marks, and other punctuation.           new turtle agents.



In NetLogo, the let keyword is used       In StarLogo TNG, the built-in
 to declare a new variable – one that import patch colors block can
     lasts only until the end of the   be used to read the colors from an
procedure (or command block) where image file, and apply them to the
              it's declared.                        patches.
 In NetLogo, one agent (of any type)
                                      In StarLogo TNG, there's no way for
    can ask any other agent to do
                                     one agent to ask another agent to do
something, as long as the one being
                                                  something.
      asked isn't the observer.


                                    In NetLogo, if must be followed by a
In NetLogo, a procedure called by a   true/false condition, and then two
“forever” button can have any valid     command blocks (zero or more
         procedure name.               statements enclosed in a pair of
                                               square brackets).


NetLogo has built-in random-xcor
                 and                  In StarLogo TNG, turtles
random-ycor reporter procedures, automatically “bounce” off the edge
for selecting random locations in the       of the world.
                world.
In NetLogo and StarLogo TNG, a dark
                                          NetLogo turtle agents can be
 shade of a base color can be made
                                        controlled by the keyboard or the
by subtracting a small value from the
                                                     mouse.
             base color.



  To conditionally execute one of
                                         There can be only one breed of
 several sets of blocks in StarLogo
                                            turtles in StarLogo TNG.
  TNG, the switch block is used.



      In NetLogo, the built-in
 import-pcolors procedure can
                                         In NetLogo, patches don't have
 be used to read the colors from an
                                                     breeds.
  image file, and apply them to the
               patches.
In NetLogo, the Edit Breed button is    In StarLogo TNG, you can draw the
used to create breeds, and to assign     terrain colors with the built-in Edit
         shapes to breeds.                       Terrain command.



                                             In StarLogo TNG, the
  There can be several breeds of        create turtles (or create
       patches in NetLogo.             breed ) block can only be used in a
                                                 setup block.



   In NetLogo, the built-in hatch
                                       StarLogo TNG variable and procedure
 procedure allows a turtle agent to
                                            names may contain spaces.
      create new turtle agents.
When writing code in NetLogo, words StarLogo TNG has built-in random
that are keywords, names of built-in             xcor and
procedures, or constants, are colored random ycor blocks, for selecting
           automatically.               random locations in spaceland.



                                                NetLogo's built-in
 A NetLogo command block begins
                                        scatter-all procedure can be
 and ends with left and right square
                                       used to distribute agents randomly
       brackets, respectively.
                                               all over the world.




   There can be several breeds of      In StarLogo TNG, patches are agents
         turtles in NetLogo.                that can follow instructions.

								
To top