Last sessions cancelled

Following the announcement by the Taoiseach that all schools are to close until the 29th of March, this covers our final two dates for this year.

We hope you’ve all had a great time during this year and that everything will be back to normal in the Autumn for next year. In the mean time, the next few weeks in particular are a great opportunity for practicing at home what we’ve been learning, so keep going!

Scratch Hangman

Ever played Hangman? You have to guess a mystery word before the stickman is fully drawn. The algorithm (or recipe as the instructions call it) to make the game is explained in pseudocode. Hangman Project in Scratch

You can right-click (or two-finger tap if on a Chromebook) to import this list of 5-letter words for Hangman attached below.

To import this project into your Scratch folder, first download it, then go to File > Upload from your computer. Once you have selected it will be loaded in Scratch.

To import the list of five-letter words, download it to your computer, right-click on an existing list and select the import option. Then, select the words.txt file to import into the list. Each line in the .txt file represents each item in the list.

ScratchX: Artificial intelligence

Our “guess the image” jukebox today is using several ScratchX plugins. It uses Clarifai to classify an image and produce some keywords, and then Spotify plays ten seconds of a track matching the keywords. Here are the addresses of the ScratchX plugins:

Here’s the Ninja version with some of the code already set up for you: Image_Jukebox_Ninja_Version.sbx

And finally the completed version: Image_Jukebox_Final_Version.sbx

ScratchX: 2D physics!

ScratchX 2d physics screenshotToday, Ninjas are getting a chance to mess around with a physics engine called Box2D in a side-scrolling ScratchX game that sees them pushing over haybales and avoiding swinging ramps with a monster truck! What will happen if we give our truck really bouncy tyres or give one less grip or even change gravity itself!

To give you a bit of a head-start in the game you can download a partially-made version of the game here: Gravity_Density_and_Bounce_Ninja_Version.sbx.

The final version should like a bit like this one: Gravity_Density_and_Bounce_Final_Version.sbx.

ScratchX: Scratch in 3D

Today our advanced group started to look at ScratchX. With ScratchX you can add extra modules to the Scratch environment, and today we looked at the Scratch3D extension.

Scratch space 3D coordinate imageFirstly, we looked at 3D coordinates. With Scratch we normally have x and y, but now we have z. In the picture you can see x going left to right and y going up and down, but now we also have z coming torwards and away from us. In this image the sun is at the centre of the solar system, x=y=z=0.

Scratch code showing how to make 3D coordinates display in spaceBecause you can move around the 3D space, you can’t easily show coordinates in the corner like you can with the fixed 2D space of normal Scratch. Well, you could show where the viewer (or “camera”) is located, but since you can be facing in any direction, and maybe even upside-down, your location is only part of the story. The code here shows how you can set the x, y, and z coordinates to be displayed as big numbers in 3D space as in the image above. It’s much easier to see where you are with big numbers floating all around you!

Solar System scriptFinally, here’s the code to create the sun and planets, and place them around in space. The Scratch3D extension makes it really easy to create a planet, place it where you want, scale it to the size you want, complete with full-colour texture map, and all in one line. We also have a Lego Darth Vader and a Car (a Tesla?) hidden somewhere in space. Next the forever loop keeps the planets and sun rotating gradually. You can see in the corner the first few blocks for moving around. You can download the Scratch script here.


Collage of images showing robot assemblyToday we started building a robot from Makeblock. A small group carefully dismantled it (it had already been assembled) and started putting it into a different configuration, a mobile arm with grabber. Next time we hope to finish the construction and start programming it!

Starting Saturday 7th October, and full timetable

Our first session for this year will be Saturday October 7th at 10am. As usual we ask people to book (free) tickets through the calendar on the right so we can anticipate numbers.

After checking the school calendar, public holidays, etc.,  we’ve drawn up the following list of dates that CoderDojo Athy will be running. Tickets for all dates are available now.

October: 7, 14, 21
November: 11, 18, 25
December: 2, 9
January: 13, 20, 27
February: 3, 24
March: 3, 10
April: 14, 21, 28