Blockly Minecraft Task 1 ) Please copy the example task. Task by task

Slides:



Advertisements
Similar presentations
WHAT MAKES UP A COMPUTER BY SABRINA & BETH. MOTHERBOARD On the Computer, the Motherboard is where all the different parts are connected too work the computer.
Advertisements

Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
AGENT TRAINING PowerPoint Basics. Goals: After today, you will be able to: Add new slides Add new slides Apply design templates Apply design templates.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
PIC Programming with Logicator
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Rodger Duke University, July 2008.
Wizard Game: Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July
 JavaScript is a programming language that web browsers understand. You can use it to make your web pages interactive by: Responding to user actions and.
Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
NotetakR.ppt A template to assist students with note taking for school research projects Designed by Kevin Jarrett Original idea © Mike Eisenberg.
Microsoft Office Illustrated Fundamentals Unit B: Understanding File Management.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
Learning to program using Minecraft. Learning Objective Know what Minecraft is and to explain some of it’s uses Build a simple house in creative mode.
Internet. Internet is Is a Global network Computers connected together all over that world. Grew out of American military.
PHP : Hypertext Preprocessor
Noadswood Science,  To know the basics of Python coding and decoding Monday, September 07, 2015.
An Introduction to Textual Programming
A revision guide for programming with python. 1.A program is a set of instructions that tells a computer what to do. 2.The role of a programmer is to.
Microsoft Office 2003 Illustrated Introductory with Programs, Files, and Folders Working.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
How to Copy and Paste Created by C. Trembath 2011.
Section 3 Calculations National 4/5 Scratch Course.
Exploring Your Desktop To run presentation, please click on bottom arrow to right to change to next frame.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Summer Computing Workshop. Session 2 Input in Scratch  Multi-Character input - This is used when the user is prompted to enter a number or word.  Problems.
Introducing Scratch the Cat
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
Word Lesson 2 Basic Editing
An introduction to Logo Mike Warriner Engineering Director, Google Note: This course is not an endorsement of Logo by Google. All views in this document.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
Lesson 4 Using Variables in Python – Creating a Simple ChatBot Program.
Edmo.do/j/q4b8fs xnt8zb SAVE DOCUMENTS TO EDMODO WEBSITE.
Chapter Three The UNIX Editors.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Editing Basics Lesson 8. Skills Matrix SKILL #MATRIX SKILL 2.2.1Cut, copy, and paste text 2.2.2Find and replace text 4.1.1Insert building blocks in documents.
WORD BASICS: THE HOME MENU READ THROUGH THE FOLLOWING SLIDES AND FILL OUT YOUR STUDY GUIDE.
Word Lesson 2 Basic Editing
The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger.
Learning to program a turtle to build different structures.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Computer Parts Review. A small data storage device that uses flash memory. A. USB B. CPU C. Flash Drive D. CD Drive.
Today's Ninja Challenge: Write Your First Computer Game!
Skills Connection Quick Start Step-by-Step. 5 Steps Step 1 Step 2 Step 3 Step 5 Name Test Step 4.
Speedway Schools. A computer has many parts that make it work. Some of those parts we can see. Others are hidden inside where we can't see them. In this.
The Essentials of Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University May 2009.
Pasewark & Pasewark 1 Word Lesson 2 Basic Editing Microsoft Office 2007: Introductory.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
1 Word Lesson 2 Basic Editing Microsoft Office 2010 Introductory Pasewark & Pasewark.
Digital Literacy Introduction to Computers Unit 1, Lesson 1.
Lesson 1 An Introduction
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Guide To UNIX Using Linux Third Edition
MANIPULATING TEXT WITHIN AND BETWEEN DOCUMENTS
Chapter 2/Module 2: Computer and managing files
Introduction to TouchDevelop
Hour of Code.
ECDL TEST – Print screen to Common ECDL Errors
Professor Susan Rodger
Professor Susan Rodger
Microsoft Office Illustrated Fundamentals
Skills Sheet: ‘Organising, saving & touring placemarks’
Presentation transcript:

Blockly Minecraft Task 1 ) Please copy the example task. Task by task Blockly Minecraft Task 1 ) Please copy the example task. Task by task. Do not alter or personalise it in any way. Drag out the SKYMAP block Drag out a SKIN block Then select AGENTSMITH Press CTRL & D to bookmark and save your work Then press Run X

X Adding extra blocks Using the Minecraft blocks Copy this block pattern Your blockly character needs a nickname – Call him Agent Smith X Now- Run the program Your character takes small steps – try changing the step to 1 – steps are longer – but not realistic Use right click to quickly create additional blocks so that walking looks more realistic. What will happen if you use move -0.5?

Using arrays Example A Example B A B Program B works slower why? ReadS the randomly selected phrase from the list It then replaces the VARIABLE ARRAY list with the phrase (the full list is wiped from memory – replaced by the randomly selected text) The single phrase in memory is said (printed on screen) The next loop cycle all the phrases are re-read and the re-written back into the computer memory and stored as a new data for the variable array (LIST). This read write to memory process takes time causing a short delay. Program A only writes the information to Random Access Memory once it only looks up a random phrase which is already stored therefore the array is not changed in any way this is faster. Program A might need a delay or a steeping loop to slow it down so that it is more user friendly - readable. Program B is very efficient and fast. Program A works fine and is easy to read. There are often several ways to achieve the same outcome. Generally programs need to be very efficient and reponsive ie.fast. Program B works slower why?

Using variables – creating an array! Drag in this VARIABLE block Give the variable a name Drag in this list block Drag in this minecraft block Duplicate it so that you have three copies. Add text phrases

Variables are usually defined at the start of a program Drag and connect the quotes variable to the start of the program. A variable which stores several distinct pieces of data is called an ARRAY. This array is in the form of a list. X RAM CHIP If you press run – the array will not do anything. The data is simply stored in a memory location inside the computers RAM memory chip.

Lets create a path for Agent smith to walk Drag a loop block from the control menu Your program should look like this! Set the loop to run 8 times Use 108 degrees Press CTRL & D to bookmark and save your work Then press Run Run the program to test it X

Make your character talk Drag and connect these communication blocks from the Minecraft fly out option menu Type in Hello, World! This is a tradition that all programmers follow When you learn a new programming language Print(“Hello, World!) is usually your first step. Press CTRL & D to bookmark and save your work Then press Run X

Lets use the data array - Quotes Drag and connect this communication block from the Minecraft fly out option menu Drag and connect this Lists block This command will pick RANDOM quotes from the data array and your character will say them on screen

Putting it all together Agent Smith will now walk and talk randomly. E.g. b c a c b

Research Lets google search and find some cool phrases!

No delay block! No problem! Lets make one using a stepping loop

Going random Make Agent Smith unpredictable Using random numbers in a loop creates interest. Make Agent Smith dance Using random walks -numbers walk backwards +numbers walk forwards http://jeromeetienne.github.io/blockly-threex/apps/index.html#%3Cxml%3E%3Cblock%20type%3D%22variables_set%22%20inline%3D%22false%22%20x%3D%22-23%22%20y%3D%22-338%22%3E%3Ctitle%20name%3D%22VAR%22%3EQuotes%3C%2Ftitle%3E%3Cvalue%20name%3D%22VALUE%22%3E%3Cblock%20type%3D%22lists_create_with%22%20inline%3D%22false%22%3E%3Cmutation%20items%3D%223%22%3E%3C%2Fmutation%3E%3Cvalue%20name%3D%22ADD0%22%3E%3Cblock%20type%3D%22text%22%3E%3Ctitle%20name%3D%22TEXT%22%3EDo%20you%20hear%20that%2C%20Mr.%20Anderson%3F%20%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22ADD1%22%3E%3Cblock%20type%3D%22text%22%3E%3Ctitle%20name%3D%22TEXT%22%3EThat%20is%20the%20sound%20of%20inevitability.%20%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22ADD2%22%3E%3Cblock%20type%3D%22text%22%3E%3Ctitle%20name%3D%22TEXT%22%3ENever%20send%20a%20human%20to%20do%20a%20machines%20job%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cnext%3E%3Cblock%20type%3D%22draw_skymap%22%3E%3Ctitle%20name%3D%22VALUE%22%3Emars%3C%2Ftitle%3E%3Cnext%3E%3Cblock%20type%3D%22draw_nickname%22%20inline%3D%22false%22%3E%3Cvalue%20name%3D%22value%22%3E%3Cblock%20type%3D%22text%22%3E%3Ctitle%20name%3D%22TEXT%22%3EAgent%20Smith%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cnext%3E%3Cblock%20type%3D%22draw_skin%22%3E%3Ctitle%20name%3D%22VALUE%22%3Eagentsmith%3C%2Ftitle%3E%3Cnext%3E%3Cblock%20type%3D%22draw_say%22%20inline%3D%22false%22%3E%3Cvalue%20name%3D%22value%22%3E%3Cblock%20type%3D%22text%22%3E%3Ctitle%20name%3D%22TEXT%22%3EHello%2C%20World!%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cnext%3E%3Cblock%20type%3D%22controls_repeat_ext%22%20inline%3D%22true%22%3E%3Cvalue%20name%3D%22TIMES%22%3E%3Cblock%20type%3D%22math_random_int%22%20inline%3D%22true%22%3E%3Cvalue%20name%3D%22FROM%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E4%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22TO%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E10%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cstatement%20name%3D%22DO%22%3E%3Cblock%20type%3D%22controls_for%22%20inline%3D%22true%22%3E%3Ctitle%20name%3D%22VAR%22%3Ei%3C%2Ftitle%3E%3Cvalue%20name%3D%22FROM%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E1%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22TO%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E10%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22BY%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E1%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cstatement%20name%3D%22DO%22%3E%3Cblock%20type%3D%22draw_say%22%20inline%3D%22false%22%3E%3Cvalue%20name%3D%22value%22%3E%3Cblock%20type%3D%22text%22%3E%3Ctitle%20name%3D%22TEXT%22%3Ehmm%20%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fstatement%3E%3Cnext%3E%3Cblock%20type%3D%22draw_move%22%20inline%3D%22true%22%3E%3Cvalue%20name%3D%22DISTANCE%22%3E%3Cblock%20type%3D%22math_random_int%22%20inline%3D%22true%22%3E%3Cvalue%20name%3D%22FROM%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E-0.5%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22TO%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E-3%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cnext%3E%3Cblock%20type%3D%22draw_move%22%20inline%3D%22true%22%3E%3Cvalue%20name%3D%22DISTANCE%22%3E%3Cblock%20type%3D%22math_random_int%22%20inline%3D%22true%22%3E%3Cvalue%20name%3D%22FROM%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E0.5%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22TO%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E3%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cnext%3E%3Cblock%20type%3D%22draw_turn%22%20inline%3D%22false%22%3E%3Cvalue%20name%3D%22ANGLE%22%3E%3Cblock%20type%3D%22math_number%22%3E%3Ctitle%20name%3D%22NUM%22%3E108%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cnext%3E%3Cblock%20type%3D%22draw_say%22%20inline%3D%22false%22%3E%3Cvalue%20name%3D%22value%22%3E%3Cblock%20type%3D%22lists_getIndex%22%20inline%3D%22true%22%3E%3Cmutation%20statement%3D%22false%22%20at%3D%22false%22%3E%3C%2Fmutation%3E%3Ctitle%20name%3D%22MODE%22%3EGET%3C%2Ftitle%3E%3Ctitle%20name%3D%22WHERE%22%3ERANDOM%3C%2Ftitle%3E%3Cvalue%20name%3D%22VALUE%22%3E%3Cblock%20type%3D%22variables_get%22%3E%3Ctitle%20name%3D%22VAR%22%3EQuotes%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fstatement%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3C%2Fnext%3E%3C%2Fblock%3E%3Cblock%20type%3D%22draw_say%22%20inline%3D%22false%22%20x%3D%22-1023%22%20y%3D%22-77%22%3E%3C%2Fblock%3E%3Cblock%20type%3D%22math_number%22%20x%3D%22385%22%20y%3D%22284%22%3E%3Ctitle%20name%3D%22NUM%22%3E0.5%3C%2Ftitle%3E%3C%2Fblock%3E%3Cblock%20type%3D%22math_number%22%20x%3D%22271%22%20y%3D%22292%22%3E%3Ctitle%20name%3D%22NUM%22%3E0.5%3C%2Ftitle%3E%3C%2Fblock%3E%3Cblock%20type%3D%22math_number%22%20x%3D%22407%22%20y%3D%22347%22%3E%3Ctitle%20name%3D%22NUM%22%3E8%3C%2Ftitle%3E%3C%2Fblock%3E%3C%2Fxml%3E

Task 2 Document your program. Like this. Use this example or the template provided. Task 3) Choose a different character. E.g. Mario Use the www to research his quotes. Test and document your program. Example