09-28-2015, 03:38 PM
(This post was last modified: 09-28-2015, 03:44 PM by Mrocza.
Edit Reason: My ASCII art skill is questionable.
)
I'm gonna skip the boring part and cut straight to example exercises.
The first lesson is basically a showcase of what can be done in Logo with the use of interactive presentations. Minigames such as pentomino, classic pairs or symmetrical drawing. I think Cbot is even better in this stuff. I mean seriously - it's a video game after all. The student could battle a few pre-programmed bots in races, football (tireball actually) or other activities.
After that comes the fun part. In reverse translated Logo:
forward number - moves the turtle forward by number steps
backward number - obvious
left number
right number
clear - clears the canvas and resets the turtle (we got a restart button for that)
setColor color - sets color
setThickness number - guess what... it sets thickness
Example exercises:
1. Draw the folowing shape:
2. Draw a green square. Since turtle's moves repeat you can use the repeat command.
- Example solution 1:
fwd 60 rt 90
fwd 60 rt 90
fwd 60 rt 90
fwd 60 rt 90
- Example solution 2:
repeat [fwd 60 rt 90]
3. Draw two squares just like on the drawing (common corners):
4. Draw the folowing shapes:
Teaching the turtle new words....
Basically there's function building to teach yer turtle the square command.
It's noted that a new function is not blank but starts with thatis square and ends with done and that the instructions should be written between those.
1. Using the square function write a function to draw three squares on top of each other and name it tower
- two example solutions noted here, with and without repeat
2. Write a function for drawing four squares forming a big square and name it 4squ
Next is a function with parameter:
thatis square :side
repeat [fwd :side rt 90]
done
And a function to draw colorfull squares:
thatis square_rnd :side
setColor rnd
repeat [fwd :side rt 90]
done
Where rnd returns a random value.
1With the use of square_rnd draw the folowing:
For the last shape you'll need to use up and down commands to rise or drop turtle's marker.
That's how it goes (more or less) in WSiP's (publisher's) "Lekcje z komputerem".
All I got were lesson scripts. I wanted to get some detailed info directly from WSiP's webpage as I do have the teacher's registration code but sadly I do not have access to any primary school materials. What I wrote there should be enough though. At least for a good start.
The first lesson is basically a showcase of what can be done in Logo with the use of interactive presentations. Minigames such as pentomino, classic pairs or symmetrical drawing. I think Cbot is even better in this stuff. I mean seriously - it's a video game after all. The student could battle a few pre-programmed bots in races, football (tireball actually) or other activities.
After that comes the fun part. In reverse translated Logo:
forward number - moves the turtle forward by number steps
backward number - obvious
left number
right number
clear - clears the canvas and resets the turtle (we got a restart button for that)
setColor color - sets color
setThickness number - guess what... it sets thickness
Example exercises:
1. Draw the folowing shape:
Code:
_
_| |
|___|
2. Draw a green square. Since turtle's moves repeat you can use the repeat command.
- Example solution 1:
fwd 60 rt 90
fwd 60 rt 90
fwd 60 rt 90
fwd 60 rt 90
- Example solution 2:
repeat [fwd 60 rt 90]
3. Draw two squares just like on the drawing (common corners):
Code:
__
__|__|
|__|
4. Draw the folowing shapes:
Teaching the turtle new words....
Basically there's function building to teach yer turtle the square command.
It's noted that a new function is not blank but starts with thatis square and ends with done and that the instructions should be written between those.
1. Using the square function write a function to draw three squares on top of each other and name it tower
- two example solutions noted here, with and without repeat
2. Write a function for drawing four squares forming a big square and name it 4squ
Next is a function with parameter:
thatis square :side
repeat [fwd :side rt 90]
done
And a function to draw colorfull squares:
thatis square_rnd :side
setColor rnd
repeat [fwd :side rt 90]
done
Where rnd returns a random value.
1With the use of square_rnd draw the folowing:
For the last shape you'll need to use up and down commands to rise or drop turtle's marker.
That's how it goes (more or less) in WSiP's (publisher's) "Lekcje z komputerem".
All I got were lesson scripts. I wanted to get some detailed info directly from WSiP's webpage as I do have the teacher's registration code but sadly I do not have access to any primary school materials. What I wrote there should be enough though. At least for a good start.
My Code Battle League program: MhrodeBattle.txt
Welcome back, Mrocza. You last visited: Sunday, July 7th, 2013, 02:12 pm
http://imgur.com/L3Y8bQz
Welcome back, Mrocza. You last visited: Sunday, July 7th, 2013, 02:12 pm
http://imgur.com/L3Y8bQz