Computer Science 1172 Scratch Project on Artificial Intelligence and Computational Thinking Nicholas Crabtree Jiang Jiang Liu Thinking Speaking Writing.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Create a Simple Game in Scratch
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
How to make an educational Snakes and Ladders game in Scratch
Tic Tac Toe size(600,600); Aim: How can we set up our canvas and display for a Tic Tac Toe game? 1. Sketch the two drawings and write the two code.
A Christmas Scratch game
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Welcome to Turnitin.com’s Peer Review! This tour will take you through the basics of Turnitin.com’s Peer Review. The goal of this tour is to give you.
Welcome to Turnitin.com’s Peer Review! This introductory tour will take you through our Peer Review system and explain the steps you need to get started.
ITEC Winter An intro to programming concepts with Scratch Quick intro for college citizens. George Stockman MSU CSE.
CORE MECHANICS. WHAT ARE CORE MECHANICS? Core mechanics are the heart of a game; they generate the gameplay and implement the rules. Formal definition:
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Comparing Python and Visual Basic
The Scratch Calculator You are all going to be real computer programmers!!!
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
Introduction to Scratch!
Spiral Rider PAGE 1. Set Up Scene 1.Add Stage-underwater scene 2.Add crab sprite 3.Add two fish sprites PAGE 2.
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
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.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
©Robomatter – Distribution or copying without permission is prohibited. 3B STEM Computer Science 1 ©Robomatter – Distribution or copying without permission.
Learning the skills for programming Advanced Visual Programming.
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Grades: 6-8 Subject: Artificial Intelligence An Introduction to the Turing Test.
Geometry. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions are.
Overview of Game Maker. Game Maker Version 7.0 Lite (free version) For MS-Windows platforms
Scratch pong challenge Pong is a classic 1970s video game  Open the pongv1.sb2 file in Scratch  Click the.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Summer Computing Workshop. Session 3 Conditional Branching  Conditional branching is used to alter the normal flow of execution depending on the value.
24 Background Building 25 Computing Terminology, and Speed/Velocity Module 4 Notes: Sensing, Or Operator, Conditional Logic 28 Module 4 Algorithms,
Scratch Creative Computing. INTRODUCTION TO SCRATCH Section 1.
By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point.
MOSES YEO.  We talked about aspects of a good videogame  One element we talked about was how to get someone addicted to the game.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
GAME:IT Junior Paddle Ball Objectives: Review skills from Introduction Create a background Add simple object control (up and down) Add how to create a.
Making a Flappy Birds Game PART 2 – MAKING THE BIRD FLAP AND FALL – AND DEVELOPING THE GAME FURTHER (ADDING ADDITIONAL CHARACTERS, GOODIES, ENEMIES AND.
ICT/COMPUTING RULES Only use software allowed by the teacher
Introduction to Programming with Scratch Exploring Computer Science – Lesson 4-1.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Intro CS – Costumes and Variables
Create a Halloween Computer Game in Scratch
Exploring Computer Science Lesson 4-14
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Scratch Programming Intro
Creating Variables Output Logic flow Operators (More) Basic blocks
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Game Over Module 4 Lesson 2.
Introduction to Snap Programming
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Exploring Computer Science Lesson 4-14
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Creating a Simple Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Presentation transcript:

Computer Science 1172 Scratch Project on Artificial Intelligence and Computational Thinking Nicholas Crabtree Jiang Jiang Liu Thinking Speaking Writing 1172 November 29, 2010

Scratch Program Runner A Demonstration of Artificial Intelligence and Computational Thinking

Topics to discuss Scratch for new users Introduce the topic of Artificial Intelligence Demonstrate the different parts of the scratch program so that students understand it Explain how the program shows AI in action Explain Computational thinking

Scratch Into What is Scratch? Scratch is a programming language that easy to use for all. It uses simple drag and drop style programming so that the user can easily see and create their programs.

What is Artificial Intelligence Definition- AI or artificial intelligence is the name given to a computerized mind that consists entirely of programming code. In simpler terms it is something that can work on its own without Human Intervention, because it entirely runs off of code.

What is Computational Thinking Computational thinking is how we think analytically. It builds upon the power and limits of computing processes. It confronts the riddle of what can Humans do better than computers and what can computers do better than humans. In laymens terms, it simply means our deep thinking or technical thought.

Scratch Program “Runner” Following this slide is a simple scratch program called “Runner” the object of this program is to show how AI looks and operates and the use of Computational Thinking. The program takes a user controlled object, called a sprite, in this case it is a car, and allows the user to maneuver it into the black area where the user scores. However, there are AI players that move back and forth in its path, so be carefull. Because if one is touched you lose a life and you only have 3. This program also utilizes Computational Thinking; it allows a user to scan the game field and decide how it would be best to score. While playing without losing lives and in its coding it was well through out and shows how computer players operate and how humans operate against them.

Stage Script

Computational Thinking The part that shows analytical thinking the most is the Stage Script. When it asks for a passcode it challenges the user to use his or her brain by creating a simple riddle-like question and it allows the user to think out what they want to say to the computer whether the answer is “yes” or “no”.

Stage Script Continued

Sword 1 Sprite

Sprite 2, and 3 Please note sprites 2, and 3 are identical to 1 except that they are set to different positions. Where sprite 1 is (X:-228 and y:-75) sprite 2 is (X: -224 and y:2), and sprite 3 (X:-208 and y:-31) Also note that these three sprites are the AI that moves back and forth in the program. They simply run off code that makes them slide back and forth at random speeds and if they are touched the player loses a life. As one can see, they are not being ran by a human, but off of code. These Sprites also show Computational thinking. They show a well thought-out code to program them to act a certain way in the program. Although they can only think a programmed way compared to the human player whom can move in any direction.

Car Sprite

Computational Thinking in Car Sprite This part of the program is perhaps the must fundamentally sound it sets up the user control of the sprite called “car”. And it allows the user when playing the program to use their mind to get passed the AI sprites. In the program by allowing the player to go left, right, down, and up. It also sets up a way for the player to score whenever the player touches the color black which is at the top of the both backgrounds.

Game Over Sprite

Wall Sprite

Sword6 Sprite

Sword 7 Please note Sword 7’s script is identical to Sword 6’s except where its point of origin is Sword 7 (X: -214 and Y:138) and sword 6 (X: -214 and Y:136) These are also AI set up by the programming code. They are unique from sprites 1, 2,and 3 in that they initially hide for 25 seconds and then they appear using the look block piece in scratch “show.” This makes them visible, and instead of using the glide feature these sprites bounce around the background increasing the difficulty. Again these are not controlled by the user and are therefore considered AI.

Closing Thank you for your attention and have a great day. Any Questions?