Puzzle App II CSE 120 Winter 2018

Slides:



Advertisements
Similar presentations
Tic Tac Toe Architecture CSE 5290 – Artificial Intelligence 06/13/2011 Christopher Hepler.
Advertisements

Game Design and Programming. Objectives Classify the games How games are design How games are implemented What are the main components of a game engine.
Lecture 3 IAT 800. Sept 15, Fall 2006IAT 8002 Suggestions on learning to program  Spend a lot of time fiddling around with code –Programming is something.
POWERPOINT TRAINING Introduction to Effective Image Usage in Powerpoint. Eileen Fry Indiana University Sept
GameMaker.  A lot of Different Definitions  Easier to Say What is NOT a Game  Movie is Not a Game  No Active Participation  Final Outcome is Fixed.
Buttons and Hyperlinks in PowerPoint To add a button: 1.Open a PowerPoint Project and select the slide on which you wish to place a button. 2.Click on.
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
IEU Mobile by Serhat Uzunbayir IES 506 Human-Computer Interaction Human-Computer Interaction Term Project.
PowerPoint 1 The Basics 1. Save this file to your Apps Folder as YourLastName_PP1 2. Read each slide. 3. Complete each set of numbered directions.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004.
Art 315 Lecture 5 Dr. J. Parker AB 606. Last time … We wrote our first program. We used a tool called GameMaker. The program we wrote causes a ball to.
Unit 1 – Improving Productivity Instructions ~ 100 words per box.
Submitting and Assignment Click on the assignment link in your course The folder with the paper sticking out of the top is the symbol for an assignment.
Schoolwires Calendar App. Calendar Overview Calendar app uses the same color scheme and fonts as the rest of the IRHS site.
Methods for Multiplication Tutorial By: Melinda Hallock.
Intro CS – Keyboard and mouse input Lesson Plan 7.
Return to the Welcome to Windows 7 web page Lesson 1: Getting Your First Look.
Nested Loops & Arrays CSE 120 Spring 2017
Expressions & Control Flow CSE 120 Spring 2017
Recursion II CSE 120 Spring 2017
Basic Input and Output CSE 120 Spring 2017
Scratch for Interactivity
Emerging Platform#1: Processing 3
Processing Introduction CSE 120 Spring 2017
Intro CS – Keyboard and mouse input
Android 11: The Calculator Assignment
Developing an App CSE 120 Spring 2017
Functions in Processing CSE 120 Spring 2017
Lightbot and Functions CSE 120 Winter 2017
Algorithmic Complexity CSE 120 Winter 2018
Using a Stack Chapter 6 introduces the stack data type.
Mid-Quarter Review CSE 120 Winter 2018
Tables, Smart Art and Templates
Functions in Processing CSE 120 Winter 2018
Basic Input and Output CSE 120 Winter 2018
Variables & Datatypes CSE 120 Winter 2018
Processing and Drawing CSE 120 Winter 2018
MyWritingLabPlus for Economics
Expressions & Control Flow CSE 120 Winter 2018
Graph Paper Programming
UNITY TEAM PROJECT TOPICS: [1]. Unity Collaborate
Developing an App II CSE 120 Spring 2017
Graph Paper Programming
Using a Stack Chapter 6 introduces the stack data type.
Variables & Datatypes CSE 120 Spring 2017
Lightbot and Functions CSE 120 Winter 2018
Strings, Puzzle App I CSE 120 Winter 2018
In Class Programming BIS1523 – Lecture 11.
The RGB LED.
Nested Loops, Arrays CSE 120 Winter 2018
More programming with "Processing"
Algorithms CSE 120 Winter 2018 Instructor: Teaching Assistants:
List the differences between these two bar charts
Using a Stack Chapter 6 introduces the stack data type.
Caches III CSE 351 Autumn 2018 Instructor: Justin Hsia
MACROS MUST BE ENABLED FOR THIS FILE TO WORK
Using a Stack Chapter 6 introduces the stack data type.
A few tricks to take you beyond the basics of Microsoft Office
MACROS MUST BE ENABLED FOR THIS FILE TO WORK
Basic Input and Output CSE 120 Winter 2019
Variables & Datatypes CSE 120 Winter 2019
Arrays CSE 120 Winter 2019 Instructor: Teaching Assistants:
Processing and Drawing CSE 120 Winter 2019
LCC 6310 Computation as an Expressive Medium
Loops & Nested Loops CSE 120 Winter 2019
Click Summary Value Button to Show Source of Integral or Time
Buttons & Boards CSE 120 Winter 2019
The Iterative Design Recipe
Presentation transcript:

Puzzle App II CSE 120 Winter 2018 Instructor: Teaching Assistants: Justin Hsia Anupam Gupta, Cheng Ni, Eugene Oh, Sam Wolfson, Sophie Tian, Teagan Horkan HOW TO TAKE BACK YOUR FACEBOOK NEWS FEED “It also occurred to me that the social network—more so than platforms like Instagram and Twitter—gives its users significant control over what they see in the News Feed, including several levers I’d never bothered to pull. So rather than quit outright, I decided to conduct an experiment. “Over the course of about 10 days, I used Facebook’s built-in features—as well as several third-party tools—to see if I could make the platform fun and ‘meaningful’ again. Some of it worked, but a lot of it didn’t. Mostly it was a reminder that you have more power over your News Feed than Facebook often lets on—for better or worse.” https://www.wired.com/story/take-back-your-facebook-news-feed/

Administrivia Assignments: Reading Check 6 due before lab tomorrow (2/15) Word Guessing due Friday (2/16) Birthday Visualization due Tuesday (2/20) Living Computers Museum Report due Tuesday (2/20) “Big Ideas” lecture: Artificial Intelligence

Birthday Visualization Data visualization for birthday frequencies Learn how to read file data into Processing Use color to visualize numbers Detection of mouse location within a grid int x_index, y_index; if( (mouseX >= x) && (mouseX <= x + w) && (mouseY >= y) && (mouseY <= y + h) ) { x_index = int((mouseX-x)/(w/2)); y_index = int((mouseY-y)/(h/2)); } x_index and y_index must be of datatype int!

Outline 15 Puzzle, continued

Where We Left Off Implement game mechanics of sliding puzzle of numbered square tiles Done: Draw reset button Implement reset function Draw game board (border and tiles)

Where We Left Off Implement game mechanics of sliding puzzle of numbered square tiles To Do: Implement board state and display numbers on tiles Don’t display tile with value 0 (empty/open) Detect clicks on reset button and on grid Determine if click is adjacent to open square Can only be in up/down/left/right directions Implement “sliding” (swap function) [if time] Extra functionality!

Layout Reminder

Create the Tile Layout

Add Numbers to Tiles

Reset Functionality

Tile Grid Click Detection

Tile Movements

If Time: Extensions Change Reset button hover color Create overReset() function that returns a boolean Randomize initial tile placements Tricky! How to avoid repeats? Check for win condition: tiles ordered 0-15 Note: This is not achievable for many randomized starting orderings

Summary Sketched the idea on paper Planned out coding representations Started with the things we knew how to do first Built on previous work by adding one function or idea at a time Ran the program after every improvement to make sure that it worked correctly Unit and integration testing!!!