Frogs and Toads 4 FrogApp and FrogApplet

Slides:



Advertisements
Similar presentations
Ch.2 There are 6 frogs in a pond. 4 more frogs jump in the pond. How many frogs are there now? *Press Esc at anytime to end show Click here for answer.
Advertisements

Main Menu SquaredCrazy Mouse Quit Important: Use the Quit button located on the top right of this slide to exit the presentation! Why? Created by Ethan.
CS12230 Introduction to Programming Tying things together.
Frogs and Toads 3: FrogGame and FrogGameTester
Tic Tac Toe Architecture CSE 5290 – Artificial Intelligence 06/13/2011 Christopher Hepler.
Time Evaluation ZT60 Presented by: Kelly Welsh July 29, 2009.
Programming in Jessica By Joaquin Vila Prepared by Shirley White Illinois State University Applied Computer Science Department.
Place captured red pieces here Place captured yellow pieces here To use as Kings Rules New Game Exit Left mouse click on piece – drag to desired location.
MAPPING A New IntefaceXpress Feature. MAPS Maps by Google are now available through IntefaceXpress Maps by Google are now available through IntefaceXpress.
Get number The ginput command creates crosshairs. When the user clicks the x,y values of the crosshairs are returned.
Click Here to Begin the Game CHOICE 1CHOICE 2CHOICE 3 CHOICE CHOICE
Printing and Page Formatting ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
Video Conferencing and discussion boards as communication tools Pip Huyton – London Mathematics Challenge Coordinator London Mathematics Challenge.
How To Find Your Used Barcode Range for a Particular Vendor in Destiny.
Copyright 2009 by Pearson Education Building Java Programs Chapter 2 Lecture 2-2: The for Loop reading: 2.3 self-check: exercises: 2-14 videos: Ch.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004.
Set Theory Topic 1: Logical Reasoning. I can determine and explain a strategy to solve a puzzle. I can verify a strategy to win a game. I can analyze.
Designing Programs with Branches CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Week 6 - Wednesday.  What did we talk about last time?  Exam 1 post-mortem  Recursive running time.
User Input and Collisions COSC 315 Fall 2014 Bridget M. Blodgett.
At the Animal Arcade, the animals want you to work together. To play this game, you will need to select a number. The number will lead you to an animal.
The ‘game’ is played by 12 players and 2 Accountants. The accountants and the first player can volunteer. Other players Are chosen as the game progresses.
TA SURVEY Have the TA write their name on the board Fill out the survey at: The TA should walk out 5 minutes.
Code reading skills LEVEL GAME.  Skeleton has error messages.  Notice the red lines on right slider. Click… you’ll go to an error.  pieces = levels.getPieces();
(1) Unit Testing and Test Planning CS2110: SW Development Methods These slides design for use in lab. They supplement more complete slides used in lecture.
GAME102 - INTRO WHILE LOOPS G. MacKay. Fundamental Control Structures  STRAIGHT LINE  CONDITIONAL  LOOPS.
More on Logic Today we look at the for loop and then put all of this together to look at some more complex forms of logic that a program will need The.
AD 305 Electronic Visualization I : School of Art and Design : University of Illinois at Chicago : Spring 2007 Intro to Action Script 9 "The games of a.
To begin click: File, New, then select Design Familiarize yourself with the controls on the page. Then use the maximise button the make the window fill.
Category 1 Category 5 Category 4 Category 3 Category
AD 206 Intermediate CG : School of Art and Design : University of Illinois at Chicago : Spring 2009 Intro to Action Script 9 "The games of a people reveal.
By Gurshan Saran. FACTORING Now check, how many terms? Afterward, ask yourself, Is there a GCF? The first thing you should always do if it has not been.
Copyright 2008 by Pearson Education 1 Building Java Programs Chapter 2 Lecture 2-2: The for Loop reading: 2.3 self-check: exercises: 2-14 videos:
Life Cycles: Lesson 7 Frogs
Welcome to Scratch By Miss Key. The Main Screen Viewing screen with choice of views.
Dayu Zhang 9/10/2014 Lab03. Outline Brief Review of the 4 Steps in Hello.cpp Example Understand endl and \n Understand Comment Programming Exercise -
Chomp. How is the game played Human player goes first choose a square, all to the right and down are “eaten” computer takes a turn whoever is forced to.
Programming for Art: Arrays – 2D ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 16 Fall 2010.
More on Logic Today we look at the for loop and then put all of this together to look at some more complex forms of logic that a program will need The.
LO: We’re learning to outline a program using Pseudo Code.
ARRAYS Multidimensional realities Image courtesy of
Lesson 5-4 Example Example 1 Draw an array to model and find 21 ÷ 3. 1.Write the answer if you know it. Otherwise, draw an array.
CompSci 4 Java 4 Apr 14, 2009 Prof. Susan Rodger.
Thurso High School Design and Technology Tutorial Two Dice.
THE MOUSE Left Click THE MOUSE Right Click.
Sound and more Animations
MOM! Phineas and Ferb are … Aims:
Proofreading in word 2010.
PYGAME.
What is TimeForce?. What is TimeForce? The above address is what you will use in order to access the Time and Attendance.
BMtron Game Description.
ENEE150 Discussion 02 Section 0101 Adam Wang.
Sit-In Lab 1 Ob-CHESS-ion
Lesson 12: Epic End of Day Status Procedure
Science - Year 3/4A Spring 1
C# Basics These slides are designed for Game Design Class
Created by: Jennifer Tyndall, Spring Creek High School
1. Open Visual Studio 2008.
We’re moving on to more recap from other programming languages
Lec 4: while loop and do-while loop
Lecture 13: Two-Dimensional Arrays
Steps to Ensure your Admission History is Complete
Building Java Programs
CSE 142 Lecture Notes Defining New Types of Objects, cont'd.
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
Suggested self-checks:
Created by: Jennifer Tyndall, Spring Creek High School
Tic-Tac-Toe Game Engine
CIS 110: Introduction to Computer Programming
First consider a geometric illustration of completing the square for
Presentation transcript:

Frogs and Toads 4 FrogApp and FrogApplet

Some updates Frogs and Toads 3 (after) has partial functionality can move an amphibian can determine if frog move (one square) is legal need to check if hops move is legal need to do Toads as well

FrogGame class validMove method checks the status of a pad to see if FROG or TOAD we used gameBoard.getPad(row,column).getStatus() when checking for hops have to check neighbor square is opposite type could go "off the board" – outside legal limits for row/col will cause run time error (red messages!) Instead use gameBoard.statusOfPad(row,column); this method will have protection inside checks for illegal row/column values

FrogGame class int StatusOfPad(row,column) if the row is <0 OR >= size return Pad.INVALID same deal with col otherwise, return gameBoard.getPad(row,column).getStatus();

Pond class The toString method provided draws board upside down low rows on top. Opposite of the example games We can easily flip the board, see method and verify in FrogGameTester

FrogApp class comments and pseudocode provided very easy once you get the FrogGame class working

FrogApplet class starter code provided we'll do the board drawing together and also how to convert mouse clicks to row/col values