CSCI 1006 Lecture Notes - Lecture 7: Infix Notation

46 views3 pages

Document Summary

Net logo- the net logo world wraps around and uses infix notation. By default, there are no turtles in the net logo world. Turtle properties (not all: color, size, xcor, ycor, heading (measured in degrees, with 0 pointing north and 90 pointing east, shape, who (unique id #, starts with 0) Make up the background of the net logo world. By default, patches are setup in a 33 x 33 grid (1089 patches) Patch properties: pxcor (unique for every patch, pycor integers only, 6 each side, pcolor. Has control over the net logo world. Commands- every net logo command has a specific context (turtle, patch, observer) Observer: clear all (ca)- kill all turtles, reset patch properties, create-turtles (crt n)- create n turtles at the origin. Colors and heading random: create-ordered turtles (cro n)- create n turtles at origin. Turtle- will be applied to all turtles: forward (fd n)- move forward n spaces (1 space = 1 patch).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers