Java Programming Session 2. Objectives To design a range of different blocks To create the code for these blocks To test that each block rotates correctly.

Slides:



Advertisements
Similar presentations
The Hi-Lo Game by Trevor.  Through code and the process, I learned that this code is very basic. The structure of the code is not that long.
Advertisements

With “like” denominators: 1)add/subtract across the top. 2)Leave the bottom alone. Ex: =
Goal: To understand how to solve circuits with multiple power sources
Building Java Programs
+ Combined Review Pt 2 Assignment Solve the below equation. 3a – 9 < 5a + 11.
Bubble Sort Algorithm It is so named because numbers (or letters) which are in the wrong place “bubble-up” to their correct positions (like fizzy lemonade)
Thurso High School Design and Technology Tutorial Six Assembled Part.
Prime Numbers and Prime Factorization
TRANSFORMATIONS Reflections Rotations Enlargements Translations.
Alice in Action with Java Chapter 5 Random Numbers.
BACS 287 Programming Logic 3. BACS 287 Iteration Constructs Iteration constructs are used when you want to execute a segment of code several times. In.
Alternatives The Concept Triangle Purpose or Objective First Idea or Alternative Concept Second Idea Third Idea.
BINGO! Topic Create Your Game Card You will need a blank piece of paper.
Better typing Shannon Young. Target age/ Level- 11 Yr olds, 5th grade.
Program Commenting CS-212 Dick Steflik. Commentary Commentary are pieces of information included in a program’s source files to provide additional information.
© 2007 Ray S. Babcock Tracks Game is played on a (nxn) set of squares. There are three possible moves (labeled A,B,C). Players alternate making a move.
Classes, Objects, and World-level Methods Alice. Programming in Alice© 2006 Dr. Tim Margush2 Class / Object Class A template describing the characteristics.
Federation Square Name:
10 ThinkOfANumber program1July ThinkOfANumber program CE : Fundamental Programming Techniques.
Laws of Exponents. Remember: Rule 1—Multiplying like bases  When multiplying like bases, keep the base and ADD the exponents.
Creating Tessellations With Paint. Open Microsoft Paint. Go to: Start, Programs, Accessories, Paint.
1 Building Java Programs Chapter 5 Lecture 5-2: Random Numbers reading: 5.1, 5.6.
Volumes of Revolution 0 We’ll first look at the area between the lines y = x,... Ans: A cone ( lying on its side ) Can you see what shape you will get.
3.4d- Relationship between 2D and 3D objects CCSS.
Factoring – General Method You have learned a variety of methods for factoring. This section puts all of the methods together for a general factoring.
Catch the Spirit of Mathematics Mathematics Investigations Challenge – Impossible Task or Not? 1.Materials needed: Eleven box nails, all the same size.
Use, accuracy and How to read
Why do robots need to move?
Before you start, remember to match the numbers on the Back of the Balance Bottom of the Pan Bottom of the Swing.
Lesson 8-1 Negative & Zero. Your Goal: Simplify expressions containing integer exponents.
Program Design CMSC 201. Motivation We’ve talked a lot about certain ‘good habits’ we’d like you guys to get in while writing code. There are two main.
Spreadsheets in Finance and Forecasting Presentation 9 Macros.
In this game you are going to see lots of FISH like these Your job is feed the HUNGRY FISH! Press Return.
What are the rules of Baseball?
One Point Perspective Design and Technology. One Point Perspective Task 3 Here are some high quality examples of what we are aiming to produce by the.
Prepositions and Prepositional Phrases. Prepositions A word that shows a relationship between a noun or a pronoun and another word in a sentence Also,
11 Working with Images Session Session Overview  Find out more about image manipulation and scaling when drawing using XNA  Start to implement.
3x3 Cube Solution: *There are MANY ways to solve this cube!
B = 1.8 or 1 4/5 49 y = 8 Solve ANSWER.
Subtracting With Place Value. Place Value to Subtract ,000 How many ones make a ten?
Hello and welcome to who wants to be a Millionaire! On this game you will be asked 15 questions. It will then come up with 4 possible answers, 1 of which.
Multiplying and dividing fractions review. ⅔ ¹⁵/₁₆ If your fractions are proper, then you can cross cancel That means you are reducing early.
Opening the doors of learning. For more fun games, go to Instructions: Press the correct platforms.
 The game features a hyperlinked board. You can choose categories at random or begin from the left corner and work towards the top.  The questions are.
Surface Area Geometry Volume.
More – means the number is bigger like an elephant. Less – means the number is smaller like a mouse.
Lines Identifying Different Types of Lines Next Type your name and send: Next.
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.
The Stroop Task. Shout out the colour of the word on the next page.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Finding equivalent Fractions Fractions the same as a ½.
TRY NOW: What do you remember? A number that you can divide by 2. A number that only has two factors. A probability calculated using math. A probability.
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.
Place Value To understand the term Place Value To explain the ideas behind Place Value To explore the visual resources that are used at our school to.
OBJECTIVES 1. Be able to recognise binary code 2. Be able to convert denary numbers into binary numbers 3. Be able to convert binary into denary numbers.
Ysgol Gyfun Cwm Rhymni - ILH. Calculate the amount of squares that appear.
Computer Programming Thinking in Code. Intro Computational Thinking Decompose Patterns General and Abstract Algorithms.
Ch. 6 Geometry Lab 6-9b Tessellations Lab 6-9b Tessellations.
Week 2 This week we will discover our surroundings now we are stranded in the rainforest.
Keep coding Bekir Mugayitoglu.
Graph Square Root and Cube Root Functions
Graph Square Root and Cube Root Functions
Introduction to TouchDevelop
Factoring – General Method
Compare and Order Whole Numbers and Decimals
Volumes of Revolution.
Dividing Whole Numbers
Translate 5 squares left and 4 squares up.
Statement of Intent I want to create a series of pots inspired by trees, man made objects using wood, specifically wooden stair spindles, chair and table.
Presentation transcript:

Java Programming Session 2

Objectives To design a range of different blocks To create the code for these blocks To test that each block rotates correctly To alter the code to select random blocks

Block Rotation 1 piece_Toppiece_Leftpiece_Bottompiece_Right

Block Rotation 2 piece_Toppiece_Leftpiece_Bottompiece_Right

Block Coding piece_Top { BLUE, BLUE, NONE }, { BLUE, NONE, NONE }, { BLUE, NONE, NONE } piece_Left { BLUE, BLUE, BLUE }, { NONE, NONE, BLUE }, { NONE, NONE, NONE } piece_Bottom { NONE, NONE, BLUE }, { NONE, BLUE, BLUE } piece_Right { NONE, NONE, NONE }, { BLUE, NONE, NONE }, { BLUE, BLUE, BLUE }

Fitting Blocks Together Remember that the shapes you make must fit together without leaving gaps Some shapes are more difficult to fit together than others Dont make a shape that will be impossible for the person playing the game

Tasks: Design a piece Modify the code Test the piece rotates well Keep doing this until you have lots of good pieces. Switch to random piece generation and try it out.