30 Days of Code 1 2 3 4 5 Program Find Command Pie R Code Icon Map your a Friend Words in Design Habitat Recipes 6 7 8 9 10 Find Living an Write lines Pseudocode It! Act your a New Path “Apply” Life of Code Code 11 12 13 14 15 Functions More Functions in Practice Adventure Adventure in Swift Swift Playgrounds Functions Story Story Part 2 Playgrounds 16 17 18 19 20 Paper Coding Real World Debug the Alter Code Sphero Puzzles Swift Puzzle Code in Sphero Coding Challenge 21 22 23 24 25 Gettin’ Match Translate Create Swift App Dev in Loopy Code to Code into Puzzles in Keynote Robot Moves Sentences Keynote 26 27 28 29 30 Code a Calculator Make Teams with Repeating Coding Code Code Patterns Spheros a Robot Using Loops with a Map Learn More 👩🤝👨1. Program a Friend 5. Map Your Habitat Program a Friend by providing simple tasks. When Use Pages to create a Map of your Habitat. providing oral commands, ensure your friend only does the required task. Get started: Plot a route around your house, classroom or town. Use shapes in Pages to create directional arrows. Use Get started: Select a simple everyday task for your friend to act commands such as Forward, Right Turn and Left Turn as your out. Eg. Tell your friend to stand up and close the door, using a initial instructions. To bring your Map to life, add photos of sites series of commands. Be as precise as possible! or landmarks on the route. Record your commands using VoiceMemos. Listen back Can your friends follow your route, to see what story your code to see if/where you made mistakes. If you are following the tells? commands, follow only as directed without making any assumptions! Turn right without an angle of turning means Learn more > turning around endlessly. 6. Find a New Path 2. Find Command Navigate through a map. Words in Recipes Get started: Use your map from Day 5, draw/write your code to Think about your favorite recipe. challenge a friend to follow your route. What are some coding Which words are commands? For tools you could add to make your code easier to follow? How about a Loop or Repeat? How would you represent that? Are example… bake(), stir(), sift(), roll(). there two (or more) paths to the same destination? What is the Get started: Find your favorite recipe least number of steps from start to finish? and take a screenshot of the directions. Using the markup tool, circle each command word. Click the + in the Markup tool bar and select the text tool. Write out the encircled words as commands. Learn more > 7. Living an “Appy” Life 3. Pie R Code Use your camera to document all of the apps one person uses in a day. This person could be a friend or Write a favorite recipe as Code. family member. Document how the user interacts with each app. Take screenshots of each app too. Get started: Find a recipe for your favorite food. Use Pages to rewrite the recipe as “code”. Remember, each action must be Get started: Download iMovie on your iPad to edit your footage. broken down to the simplest of steps— so choose an easy one! Find a suitable interview subject who uses apps and create a list of questions to ask about how they use each app. Learn more > Learn more > 4. Icon Design Construct a logo for an imaginary app. 8. Write Lines of Code Get started: Although small, app icons are simple yet Write your first lines in the Swift impactful designs made to stand out. They should be language. easy to find on your iPhone or iPad and are a key element when designing an app. Get started: Download Swift Playgrounds and open Use Keynote to plan and draw your icon. the Learn to Code 1 Playground. Explore the environment by reading the instructions and following the prompts. Learn more > Start coding! This activity could be extended into a writing Learn more > activity where learners create a plan for what their app does, intended audience, price, and features. They could then “pitch” their app idea to a panel of experts (a group of adults, parents, other learners) to go through part of a simulated development process. Top Learn More 9. Pseudocode It 13. Practice Functions Develop pseudocode to describe a daily activity, like The more you practice creating functions, brushing your teeth. Use For Loops or If statements the easier it will be. for brushing your teeth. Get started: Complete every puzzle in the Functions section of Get started: Pseudocode is the practice of planning your code Swift Playgrounds. Don’t forget to use “Step Through My Code” using your own language and syntax. Although it looks like code, to help you debug any errors and check your functions. pseudocode isn't a programming language. Can you think of a task that you perform everyday? Create your own pseudocode by writing this routine as code. 14. Adventure Story Learn more in ECCode Puzzles > Learn more in ECCode Teacher Guide > Create the layout to a Choose Your Own Adventure Story! 10. Act Your Code Get started: Select a story board template in Think about every step involved in Pages to create a plan for a Choose Your Own Adventure Story. Think of three possible starts, then two possible branches for a daily activity. For example, putting on your each of those starts and then three possible endings for each of snowsuit to play in the snow, brushing your those branches. teeth or eating lunch. Once you’ve reflected on each step, act it out! Did you miss any steps or make Learn more > any mistakes? Get started: Using Keynote or Pages write every step in a different text box (different commands). Arrange the text boxes, in order from top to bottom. Once arranged, act out the activity 15. Adventure Story (part 2) and see if everything works. If it doesn’t, rearrange the text boxes until it does. Build your Choose Your Own Adventure Story! Learn more > Get started: Use your story board. Each branch is a single slide in Keynote. Use Hyperlinks to connect from slide to slide. Don’t forget to add a Back Button in case 11. Functions in Swift your reader wants to re-choose. You can also add a Back to Start button. Playgrounds Learn more in ECCode Adventures > There can be more than one way to solve a puzzle Learn more in ECCode Puzzles > efficiently in Swift Playgrounds. Get started: Show students the 2 functions on pg. 45 of ECCode Puzzles. “Creating a New Function” or the functions for 16. Paper Coding Puzzles “Nesting Patterns” on pg. 46. Have students select one and Use paper placements to demonstrate your explain (in a journal or acting out…) how both functions can work understanding of Swift Puzzles commands. for the puzzle. Get started: Create paper versions of Swift puzzles, by cutting Learn more > out cards with Swift Puzzles commands printed on them. Have students create their own unique avatars using Play Doh, too. 12. More Functions Students should set up their cards in the correct sequence, to navigate their avatar through the puzzle. in Swift Playgrounds Learn more > Try out the two functions from Day 11 in Swift Playgrounds. Get started: Pick “Creating a New Function” or “Nesting Patterns” from Puzzles and try inputting the two functions from yesterday. Click the timer on the puzzle. Select “Step Through My Code” to highlight lines of code, as Byte performs the commands. What was the same? What was different? Does it matter which function you use? Learn more > Top Learn More 17. Real World Swift Puzzle 20. Sphero Coding Challenge Students navigate a real-world Space using Swift Students should work in pairs to complete a series of Puzzles Commands. challenges, requiring them to code a Sphero using SpheroEdu. Challenges should progress Get started: In this activity, students work in pairs to navigate a in difficulty. real-world space using the Swift Puzzles Commands. One student is blindfolded, while the other student reads out the Get started: Learners work in pairs using SpheroEdu to code a necessary commands to help the blindfolded student navigate Sphero, to navigate through several successively difficult the space. courses. The first challenge asks learners to program Sphero to navigate around three cones. Ultimately, learners have to code Learn more > and navigate their Sphero through a predetermined route, through the school from the starting line and back. Can pair with the Swift Puzzles Placemat Activity to provide a creative space for the students to navigate. The number and difficulty of the challenges can be easily Prior experience using Swift Puzzles is recommended. modified to fit any time frame and ability level. This is a great activity to get students familiar with coding robots. Can also be modified to incorporate the use of Parrot mini-drones or other robots. 18. Debug the Code Debugging is important to fix errors in code that prevent an application from running correctly. Testing the code at each step, ensures everything 21. Gettin’ Loopy runs smoothly. When an error occurs you need to Record a short music piece using Live Loops in identify the problem and decide how to fix it. GarageBand. Get started: Open Notes and tap on Share, select Lines and Get started: Design “code” (pseudocode) for the music using Grids and choose a grid. Use the Markup Tool to identify a start numbers, symbols and emojis to represent the loops. Then and a finish in the grid. In Pages, write the directions to get from create a mix and match puzzle to pair each representation with the start to the finish but make an error. Take a screenshot of its loop in Keynote. your directions. Insert the screenshot into your notes by selecting the camera tool. Share with a partner and see if they Learn more > can debug your code! Some sandbox time with GarageBand is necessary before Learn more > starting this activity. 19. Alter Code in Sphero 22. Match Code to Once you have created code you can alter or change Robot Moves it to create other commands. For example, if you have coded Sphero to create a square, could you change Code is a different form of text. only 2 lines of code so Sphero creates a rectangle? Depending on the task, we write different forms of texts like letters, emails, Get started: Here is the code in Sphero Edu App to reports, etc. While it is important to write different create a square. forms of text, it is also important to read different forms of text. Open a copy of this code in Photos. Get started: As a class select one robot (Sphero, MeeBot, Dash Use the pen/marker in the Markup tool to alter etc.), then in smaller groups or pairs code the robot to complete the code to create a rectangle. How do you a series of moves. Using the camera, video your robot know it will work? Can you alter the code for performing your code. Take a screenshot of your code. Tap on the square to make a rhombus? Share to Airdrop your photos and videos to your teacher. Your Parallelogram? teacher can show the screenshots of code from every group and then show the videos. Students can then guess which code matches the video. Top Learn More 23. Translate Code 27. Make Teams with Code Into Sentences Make teams for an activity using conditional code and logical operators. (If, Else, And, Or...) Translate code into the English language. Get started: Using conditional code, try and separate your class Get started: Choose a level within Swift Playgrounds’ into teams. (E.g. If you are wearing red or white, move to the Learn to Code 1. Take a Print screen of that level and Paste the right, else if you are wearing blue and black, move to the left...). picture in Pages. Under the picture - using sentences, translate A series of commands will end up dividing the group into the meaning of the code so that someone unfamiliar with code different teams. can understand it. Learn more > 24. Create Swift Trying to make teams that have the same number of people in Puzzles in Keynote them will be difficult. Demonstrating how using the right code can modify your end result. Use Keynote to recreate or design new Swift Puzzles. 28. Repeating Patterns Get started: Use the shapes tool in Keynote to create your own avatar. Then using magic move, demonstrate how the Swift Using Loops Puzzles code is used to successfully navigate your avatar through the puzzle(s). Loops are a block of repeated codes that run a certain number of times. Loops create a repeating pattern, Learn more > because your code will repeat your commands over and over again. Prior experience with using Swift Puzzles is recommended. Requirements for the code used can be scaled up or down make Get started: Choose a robot (Sphero, MeeBot, Dash, etc.) then the activity easier or harder. code the robot to perform 2-4 commands.This code will be the core of your repeating pattern. Now loop your code. Run your code and have a partner guess the core of your pattern. 25. App Dev in Keynote Learn more > Work in teams to develop a prototype of an app using Keynote Get started: Work as part of a team to create a prototype of an app using keynote. Students can use a keynote 29. Coding Spheres with a Map template (on Mac OS or iOS) to brainstorm ideas for an app. In pairs, code a Sphero using SpheroEdu to navigate Work through the app development process by narrowing down out of the classroom entrance and back into the ideas and select one final idea. Use this idea to create a classroom through the same or alternate door. prototype in keynote, using the shapes tools to simulate the GUI for the app and create links between slides to simulate the Get started: Using SpheroEdu, code a Sphero to navigate out of functions of the App. the classroom door, down the hall, around a corner and down a second hallway and back into the classroom. You must build An Apple pencil could be used during the brainstorming session your code without visually observing the pathway that Sphero to quickly record ideas and is also helpful to use when sketching takes. Support learners by providing them with a map of the out ideas for how the app might function. route + the dimensions of the hallway/spaces the Spheros need to navigate. 26. Code a Calculator A function is a named set of commands. 30. Code a Robot When you do the same sequence of Learn to control a robot using Swift language commands you can name it a function. in Swift Playgrounds. When you perform operations in math, you go through a series of steps. These series of steps Get started: Using a robot, find the third party Playground can be named a function. associated to it. Most of them will have a tutorial for that specific robot. Starting with the tutorial, explore the possibilities. After Get started: Pretend you are coding a calculator. In Notes or understanding how coding that robot works, draw a labyrinth Pages write out the series of commands to add/subtract/multiply/ with tape on the floor and program the robot using Swift divide multi-digit numbers. Don’t forget to name your function. language to reach the end. Have a partner try out your function. Learn more > Top Learn More
Enter the password to open this PDF file:
-
-
-
-
-
-
-
-
-
-
-
-