Tag Archives: coding

Arr, Me Hearties

Earlier, I made a coding website with tips about coding. Well today, I made an extension which translates what you type into pirate speak. Click here to open the extension. I made this extension with help from a tutorial which helped me a lot when making this website. I hope you like talking like a pirate with this handy helper. The phrases that will be translated are:

  1. Hello
  2. You
  3. Stop
  4. Yes
  5. Loot
  6. Turn the ship around
  7. Bottom of the sea
  8. Goodbye and good luck
  9. Look out, cannon fire
  10. Get out of the way
  11. My crew
  12. Throw that overboard
  13. i’m not sure you’ve thought through this course of action

There is also a unique sentence starter when you start typing.

My Apple Course

The week before my birthday I went to Apple Camp for a 3 day course on how to use a Sphero. A Sphero (pronounced sfeero) is a robot that can come as Star Wars droids, spiderman, and as a SPRK or SPRK+. I was using the SPRK+ at Apple; it’s the best and has more functions than some of the others. You control the robot using the Sphero Edu app, which allows you to draw a path that represents Javascript, you can use blocks that represent Javascript or you can write in JavaScript. I was using the blocks to make the robot move change LED colors and make sounds.

Day 1

On day 1,  I made code to create a square.

square code

This is the video of what I learnt at apple camp with a Sphero that I got for my birthday.

Then I shortened the code using loops.

square in a loop

Then again using functions.

Square shortened into a function

At the end of the session I created a program that could run a square, triangle, octagon and hexagon in a row.

square, triangle, octagon, hexagon

                                        Day 2

On day 2, I created a game where you had to throw Sphero faster than 3 g’s (g – force) else you’re out of the game.

 

this is my throwing program

                                        Day 3

On the last day, I made a story of how Sphero goes outside for a spot of gardening and he hears a football match beginning. He doesn’t know what it is, so he is scared and goes inside; later his friend tells  him what it was and he isn’t scared anymore.

 

Then I got a certificate for creating an amazing project at Apple Camp.

my certificate

Also, On the first day I got an Apple T-shirt.