Schools Integration Project No. 005g
Control Technology Empowering Minds
Scoil Náisiúnta an Stuacáin
Some programming in
Logo Demo This is a very child-friendly multimedia
version of the LOGO programming language. You won't be
able to save or print any projects with this demo
version, but you can use it to run these programs:
Slide Show.zip Slides with photographs and text from our project on St. Patrick's visit to Mayo and Sligo, and with views of sites associated with the wicked chieftain, Crom Dubh. Click here for .html version.
Crom.zip This is a game based on the legend of St. Patrick and Crom Dubh. Download the game and unzip. Read the story and on one of the pages you are invited to play a short adventure game.
QUIZ A short geography quiz on the story of St. Patrick and Crom Dubh. The object of the game is to help the turtle get home by answering the questions correctly.
BWLogo.zip This is an older free version of the LOGO programming language from Berkeley Univ., Ca. Download the .zip version and unzip to a floppy disk. Run a scan on the floppy to detect any virus. The install program on the floppy will create a folder called bwlogo in the C-drive and the necessary files will be copied into this. Use install2 if your system needs the aditional file, Bwcc. The floppy disk may then be used to load the program onto other computers. Note that only some of the programs listed below will run on BWLogo -- the Crystal Bowl will (use ppt for pd) but there won't be any Turtle Race because BWLogo doesn't support multiple turtles
This procedure sets up a race between two turtles. One way to create turtles is with the newturtle command. Both turtles are sent to the start with the "home" command. Turtle 2, t2, is then moved to the right and both turtles take 20 steps of randomly chosen length. In the event of a "photo finish", we can check the position of each turtle -- t1, show pos will show the position of t1.
A Crystal Bowl
Try: pd repeat 36[repeat 4[fd 100 rt 90]rt 10] to create this shape.
Try: pd repeat 36[repeat 4[fd 100 rt 90]rt 10 wait 10] to see it happen more slowly. Try wait 10 after fd 100 to make it show more clearly what's happening. Through how many degrees did we turn in total to create the square? Can we rotate any other shapes?
Type: show pick [John Vanessa Michael Louise] and LOGO will choose one of the names inside the brackets. Try: show pick [[John Quelly][Pat Peat][Joe White]] if you need to choose groups of words. Try simulating a throw of the dice with: show pick [1 2 3 4 5 6]
Count up and count down
This program counts up to twenty in seconds and counts down again. At the beginning, the variable time is set to 1, and this value is shown on screen. The value of time is incremented by 1 and after 10-tenths of a second time is shown again.
When a LOGO project is completed, why not create a slide show to show it off? A slide show program may look like this:
presentationmode title wait 15 page1 wait 20 page2 wait 25 page3 wait 40 page4 wait 30
The program has just one procedure which initially calls for a full screen so that the LOGO interface is hidden. The first page of the project is called title and this appears for one and a half seconds, before the next page, page1, arrives. Each subsequent page is displayed for a different duration. The end command terminates the procedure.
Making Web Pages
Why not turn your LOGO project into a set of web pages? When the project is complete, type savehtml "projectname (if using MW2) and LOGO will create a folder called projectname and will save a .html version of each page of the project to that folder, projectname. If using MW Pro, open your project, choose Create HTML Template from the File menu, and follow instructions.
Program a pack of playing cards?
Would you consider programming a pack of cards so that as you spell out the letters of the cards they can be plucked from the pack? You will have to learn to spell for this! We need a suit of thirteen cards from the pack, and we need to program the cards so that the Ace comes out first, then the two and so on. We will take the pack in one hand, with cards face down, and with the other hand take the first card off the top of the pack, say A, and without looking at the card or showing its face to anybody, place it at the bottom of the pack, face down. Next we take the second card, say C, and place it at the bottom, and take the third card and say E, and do the same thing. Now we take the top card, show it to the onlookers, say ACE, and place it on the table. For the program to work, the Ace must be fourth card from the top, because the word Ace has three letters, and we place one card at the bottom of the pack each time we call a letter. The two must be 8th from the top and after the two is played, we will be taking five cards from the top of the pack and we will be placing them at the bottom for t-h-r-e-e. These cards will be the Queen, Knave, 10, 9 and 5. The card now at the top of the pack must be the three so this card must be placed as shown below. We now need to call for the four, so we will place the 8, 7, King and 6 underneath -- note that the Ace will be gone at this stage! Try the test and amaze you friends with your programming prowess, but make sure you know your spellings!
This diagram shows the correct sequence. To arrange the cards, place the 3 face up on a table, place the 8 face up on top of the three, and so on until the thirteen cards are placed. Turn the pack face down on one hand and show your skill with your voice and the other hand!
Could you do this in Irish? Aon, dó ....deich, cuireata, banríon, rí. Aon would still be the third card, but dó would be the seventh, and trí would be eleventh. What about French?