Poetry Generation in Scratch

Fourth graders in Ms. Bradley’s class finished up their Hour of Code projects yesterday and we published their poetry generators in this Poetry Studio.

Screen Shot 2017-12-22 at 7.53.04 AM

These students have been doing quite a bit of poetry work this fall so when I approached their teacher about a Scratch project for Computer Science Ed Week, I had Code Club World’s Ada’s Poetry Generator project in mind.

The students worked in pairs and generated a list of verbs, nouns, adverbs, and adjectives in the classroom before heading to the computer lab.  The next step was to makea stage backdrop in Scratch.  I didn’t want them to use one from the library of backdrops but to create their own.  I showed them how to quickly color fill with a gradient but they all sort of went with lines of color, which looks pretty cool.

Screen Shot 2017-12-22 at 8.21.05 AM

I decided to jump into the middle of the Code Club World project and have them start with creating their lists and coding the poem generator.  I was concerned the papers with the lists of words would disappear before we had a chance to finish up the project.  I was right. We had a snow day on the day they were scheduled to complete the project.  Yesterday, last day before the break, we squeezed in the time to complete the poetry generators.

With the lists already made and the poems coded during the first session, the second work session was aimed at checking their code to make sure everything worked and adding a beginning and an end.  Could you add a second Sprite to introduce the poem generator and give instructions?  Could you some action or music at the end?

Screen Shot 2017-12-22 at 8.14.53 AM

basic poem generation code.

 

 

Screen Shot 2017-12-22 at 8.15.23 AM

A beginning, middle, and end.

 

Then we uploaded the projects to share with the Scratch community.

Some notes on facilitating pair work: I did talk about pair programming before we sat at the computers.  During each session, I would announce “time to switch driver and navigator” at regular intervals, as many weren’t willing to give up control on their own.

Also, don’t give them too much time to work on this or the special effects will outshine the poetry.

Don’t forget to save some time to add instructions, notes, and credits on the project page.  I need to be better at this.

It would have been great to have time to enjoy other classmates’ projects and give feedback, but at least they are posted and shared.

I would do this project again.

 

Advertisements

Computer Science Education Week

Hour of Code 2017 is here.  I’ve got a lot lined up this week for my school and clubs. There will be Hour of Code activities from Code.org available for all classes K-4 during the week in the computer lab.  In addition, I’ve got plans for some 3rd graders to draw a letter (like the first letter of their name) and learn about coordinates using Scratch.  Some 1st graders will begin using Scratch Jr. to make a winter project on iPads.

Each of the 4th-grade classes is starting a different Scratch project – Math game, Labyrinth and Ada’s poetry Generator, or Beetle Blocks project – print your name.

The library club with be trying out the Virtual Pet project from Scratch tomorrow and my school club will be starting their individual projects.

maze game

Labyrinth – reach the dragon. Don’t touch the sides.

Screen Shot 2016-03-29 at 9.30.23 PM

My Penguin Pet

 

screen-shot-2016-12-28-at-7-25-50-am

Name in Beetle Blocks

Screen Shot 2017-03-16 at 8.58.41 PM

Ada’s Poetry Generator Project

 

I’ve done some of these projects before but I’m hoping to blog about some of the new ones in more detail. This is just a preview of the week to come.

 

Poetry Generator

While planning Wednesday’s Code Club during a snow day on Tuesday I came across the Code Club World project Ada’s Poetry Generator.  This is a new project for me and I liked the way it introduced and used lists.   Arrays and lists are extremely important data structures in programming – right up there with loops and variables. I’ve never introduced lists in Scratch before.  I also liked how this project wasn’t a game but had the potential for a lot of creativity and fun.

I mocked up a project with Scratch Cat instead of Ada Lovelace.  (I did talk briefly about Ada when introducing the project.)

Screen Shot 2017-03-16 at 8.45.33 PM

I added some “talking” animation to Scratch Cat by duplicating costumes and morphing the mouth into different shapes.  Then coding the costumes to change when the poem is “spoken”

Some students whined a bit about poetry and not a game but I ignored that because I knew they’d like it once they figured it out.  I’m hoping someone chooses to make a MadLib or something similar for the final project.  If not, I may see if we can use this in some language arts project.

Here are some nice examples:

Screen Shot 2017-03-16 at 9.00.09 PM

Computer generating poetry with lists

Screen Shot 2017-03-16 at 9.06.15 PM

This coder really liked gluteus maximus, and unhelpful list naming conventions.

Screen Shot 2017-03-16 at 9.01.11 PM

Awesome animated mouth

This coder is my animator to be.  He drew and animated the PacMan and Ghost being eaten costumes… then he coded the poem in the last few minutes.

Screen Shot 2017-03-16 at 9.02.52 PM

Future animator

These two below took the morphing a bit to the extreme but the coding (and poetry) is well done:

Screen Shot 2017-03-16 at 8.56.52 PMScreen Shot 2017-03-16 at 9.15.40 PM

I enjoyed reading all the funny randomly generated poems that the students created.  I was glad I choose this project for my Code Club.