CSCI 1006 Lecture Notes - Lecture 7: Infix Notation

47 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+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers