Jump to content

Photo

LogoWriter!


4 replies to this topic

#1 SlowCoder OFFLINE  

SlowCoder

    River Patroller

  • 3,686 posts
  • Location:Florida, US

Posted Fri Oct 8, 2010 10:38 AM

Back in high school (88) I learned LogoWriter on PC/DOS. Lately I've been playing with it again (the old school version, because it was much cooler Posted Image) so I can begin teaching my 9 year old kid logic and structure.
(P.S. I'm not interested in being told that Logo is an unstructured language and that I should just teach my kid C. This is a great learning tool to teach kids logic and structure, not to mention mathematics and geometry.)

I've looked around the web for information (commands, structure, etc.) and have built a cheat sheet. I would like to know if you folks can provide any more information.

Here is what I have so far: (the links at the top are pages I've scoured info from)

http://mathforum.org/sum95/suzanne/basiclogo.html
[url="http://www.siue.edu/~jandris/HTMLDocuments/ANDRIS/logow.html"]http://www.siue.edu/~jandris/HTMLDocuments/ANDRIS/logow.html[/url]
[url="http://www.cattanach.org/logoplans.pdf"]http://www.cattanach.org/logoplans.pdf[/url]
[url="http://el.media.mit.edu/logo-foundation/pubs/papers/egyptian_hieroglphics.html"]http://el.media.mit.edu/logo-foundation/pubs/papers/egyptian_hieroglphics.html[/url]

SPECIAL KEYS
------------
Ctrl-F - Toggle between front side and flip side
Ctrl-U - While in front side, moves cursor to top section
Ctrl-D - While in front side, moves cursor to command center (bottom)
Ctrl-S - Stop procedure execution (break)
Ctrl -> - Next screen ???
Ctrl <- - Previous screen ???
F1 (in flip side) - Begin select (text editing)
F2 (in flip side) - Copy
F3 (in flip side) - Cut
F4 (in flip side) - Paste
F6 - Erase to the end of the line
F8 - Label ???
F9 - Move turtle with arrows
F10 - Help


SAVING/LOADING
--------------
NEWPAGE - Create a new project
NAMEPAGE/NP "name - Give the project a name
SAVEPAGE - ???
GETPAGE/GP "name - Load project from disk
GETSHAPES - Retrieve user's shapes from disk


PEN
---
PU - Pick up the pen/turtle
PD - Put down the pen/turtle
PE - Pen erase
ST - Show Turtle
HT - Hide turtle
SETSH n - Set the turtle shape (0=default)
STAMP - Stamp the turtle on the screen
TELL n - Command turtle n (0-3).
TELL [n n] - Command multiple turtles
TELL ALL - Command all 4 turtles


MOVEMENT
--------
HOME - Put turtle in home position (center of screen)
FD n - Move forward n steps/pixels
BK n - Move backward n steps/pixels
RT n - Turn right n degrees
LT n - Turn left n degrees
SHOW POS - Show current coordinates
SETPOS [x y] - Move turtle to x,y position
SETX x - Move turtle to x axis coordinate
SETY y - Move turtle to y axis coordinate
SETH n - Set absolute heading of n degrees


COLORS
------
SETC n - Change pen color to n
SETBG n - Change background color to n


PAINTING
--------
FILL - paint an area with the current pen color
SHADE - paint an area with the current shape


SCREEN
------
RG - Reset/erase graphics
CC - Clear/erase command center
CT - Clear/erase text


TEXT
----
PRINT/PR "hello - Print "hello" on the top section of front page
SHOW "hello - Print "hello" in the control center on the front page
PRINT/SHOW n + n - Print the value of n+n in the appropriate section.  Spaces in equation are required
PRINT/SHOW n + 1 - Print the value of n+1 (variable)
TYPE [hello] - Print "hello" in the command center, without carriage return


SOUND
-----
TONE ???


PAUSE
-----
WAIT n - Pause n cycles


LOOPS
-----
REPEAT n [command1 command2 command3]
REPEAT n
command1
command2
command3
END


PROCEDURES
----------
TO sub-name
command1
command2
command3
END


INPUT
-----
READCHAR - Read input from keyboard
PRINT READCHAR - print character pressed on keyboard


IF
--
IF EQUAL? READCHAR "a [print "hello] - Print "hello" if user pressed "a" on keyboard
IF EQUAL? :variable "a [print "hello] - Print "hello" if variable is "a"
IF NOT - Opposite of IF command
IFELSE (condition)
[true commands]
[false commands]
END


SPECIAL COMMANDS
----------------
FLIP - Flip between front side and flip side
PRINTSCREEN - Print the screen
STOP - Stop execution immediately
WHEN "h [print "hello] - ???


SPECIAL VARIABLES
-----------------
FRONT? - TRUE/FALSE - Are we on front page?
CHAR n - character of ASCII n
ASCII n - ASCII value of character n
I also think I remember that you could include code from other files or projects. I haven't been able to find any information on this, as I assume it was advanced enough that teachers didn't include it in their syllabi.

Thanks guys!

Edited by SlowCoder, Fri Oct 8, 2010 10:41 AM.


#2 S1500 OFFLINE  

S1500

    River Patroller

  • 3,477 posts
  • http://ccg.podomatic.com
  • Location:Twin Cities

Posted Fri Oct 8, 2010 11:32 AM

I remember LogoWriter in elementary on an Apple //.

#3 Opry99er OFFLINE  

Opry99er

    River Patroller

  • 3,616 posts
  • Location:Denver, CO

Posted Sat Nov 13, 2010 1:12 AM

TI Logo is pretty awesome. :)

#4 bomberpunk OFFLINE  

bomberpunk

    River Patroller

  • 2,078 posts
  • i hoard video games.
  • Location:new orleans

Posted Fri May 20, 2011 7:49 AM

LOGO is so RT 90 PEN DN FD 100 RT 90 FD 100 RT 90 FD 100 RT 90 FD 100 PEN UP

#5 SlowCoder OFFLINE  

SlowCoder

    River Patroller

  • Topic Starter
  • 3,686 posts
  • Location:Florida, US

Posted Sun May 22, 2011 5:23 PM

LOGO is so RT 90 PEN DN FD 100 RT 90 FD 100 RT 90 FD 100 RT 90 FD 100 PEN UP

More properly written as:
PD REPEAT 4 [RT 90 FD 100] PU
:P

But it is a fun beginner level language to teach kids how to program using a graphical platform they can easier understand.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users