TETRIS! Jeff Dam.

Slides:



Advertisements
Similar presentations
It is as easy as playing tic-tac-toe!. Make the vertical and horizontal lines of a tic- tac-toe game.
Advertisements

6.5 SOLVING SQUARE ROOT EQUATIONS REAL-WORLD EXAMPLE.
3.1 – Probability and Odds. Today we will be learning about: Today we will be learning about: Finding the probability of an event Finding the probability.
EXAMPLE 3 Find the probability of A and B You take a city bus from your neighborhood to a location within walking distance of your school. The express.
Look at the shapes below. How do I know which ones are pentagons?
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
HAIR TYPE BrownBlondBlackRedTOTALS Wavy Straight TOTALS HAIR COLOR What is the probability that a randomly selected child will have.
Nasal Cannula X particulate mask
Solving Rubik's Cube By: Etai Nativ.
انتقال حرارت 2 خانم خسرویار.
MOCLA02 Design of a Compact L-­band Transverse Deflecting Cavity with Arbitrary Polarizations for the SACLA Injector Sep. 14th, 2015 H. Maesaka, T. Asaka,
Inter-system biases estimation in multi-GNSS relative positioning with GPS and Galileo Cecile Deprez and Rene Warnant University of Liege, Belgium  
Y V =0 a V =V0 x b b V =0 z
Climate-Energy-Policy Interaction
The ABCD matrix for parabolic reflectors and its application to astigmatism free four-mirror cavities.
Decision Procedures Christoph M. Wintersteiger 9/11/2017 3:14 PM
The Seven Deadly Diseases
Chp9: ODE’s Numerical Solns
Richard Anantua (UC Berkeley)
On-Shell Methods in Quantum Field Theory
M13/4/PHYSI/SPM/ENG/TZ1/XX
Chapter11 Authentication
Electric and Thermal Utilities
Year 12 physics summary Use this as a reminder of content and a way of identifying weakness, NOT as a replacement for revision.
The French Forest Sector Model 2.0 (FFSM++)
“Devil is in the nuances” (Duran, 2017)
In-Band OAM Frank Brockners, Shwetha Bhandari, Sashank Dara, Carlos Pignataro (Cisco) Hannes Gedler (rtbrick) Steve Youell (JMPC) John Leddy (Comcast)
Examining the Feasibility of Long Term Care Insurance
Fluid Dynamics for Brewing
Presented by Jiaxing Tan
Chemistry 200 Focus 1 Atoms.
Agenda Introduction Figer 12:00-12:15
Challenge ’16 The Answers.
Waves & Sound.
Communications Research at the University of York
Performance – meaning and metrics
PHysics of music Lecture 2:.
INSTRUCTOR © 2017, John R. Fanchi
Dynamics of migrating ions in large LAr detectors.
Meicong Liang, Fei Teng* Institute of Energy, Environment and Economy
Time Synchronization and Logical Clocks
Department of Petroleum Engineering
for large surveys & censuses
Section 8-1 Review and Preview.
Crop Insurance Ratings: Evolution and Mutations
Introduction to Demand Side Management Programs
Unit 5 Unit 6 The mole Analytical stoichiometry
John Cowan Reuters Health Information
Essentials of Modern Business Statistics (7e)
Using Statistics for Better Business Decisions
Hypersonic Flight Effect on Optical Sensors
Integers Addition, Subtraction, Multiplication, Division
Week 10 - Friday CS 113.
Chapter 14 Graph Algorithms
The PV Cell History, Basics & Technologies
Teaching a Data-Driven Approach to Inference
GOOD MORNING Please have out your weekly homework to be stamped.
Containers Faster app development using Windows Server 2016 Containers.
in response to VB-111 Virotherapy
Distributed Prime Sieve in Heterogeneous Computer Clusters
Ints and Floating Point CSE 351 Winter 2017
C4 Chapter 6: Integration
Ms. PHWAY THINZAR CHIT MYANMAR
Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc.
BMtron Game Description.
Clustering and randomness
ONLINE INSTRUCTION How to get it
Coral Growth via Nutrient Random Walk
The Normal Probability Distribution Summary
Building a Game in Scratch
Presentation transcript:

TETRIS! Jeff Dam

Inspiration/Methods Inspiration: pacman.m Methods: For the shapes they were created just with an array Shapes are chosen at random with a rand() function 4 different shapes with equal probability Movement is created using random walks If left or right is chosen it also moves down to save time and to prevent it getting stuck. Boundaries Like the DLA, it checks it checks the left/right side & diagonal to see if there is a colored in box. If there is it moves straight down. If there is something below it, it will stop and another shape is generated. Game ends when ((maxX/2)-1: (maxX/2)+1 , maxY-4) is occupied Color Used colormap with JET

Run code with “Tetris” 0.01 probability of moving left or right.