Lab 1. Due: Friday, September 16th at 9:00 AM

Size: px
Start display at page:

Download "Lab 1. Due: Friday, September 16th at 9:00 AM"

Transcription

1 Lab 1 Due: Friday, September 16th at 9:00 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2, D3 ), the Processing Language and IDE, and Saving and Submitting. 1. D1 Read the Standard Lab Instructions a. Read the standard lab instructions on LEARN about Lab Days ( D1, D2, D3 ), Processing Language and IDE, and Saving and Submitting. 2. D1 Course Orientation a. Read through the Course Syllabus found on LEARN under Course Material. Refer to it for questions concerning the course, labs or assignments. b. Read Policy 71: c. Complete the Academic Integrity Tutorial and Quiz: d. The Discussion Forum for this course is on Piazza: Piazza is a great resource for getting answers to all course questions. Before asking a question, search Piazza to see of someone already asked the same question. When posting a question, always make it public so others can benefit from the answer. Confused minds think alike. Take a moment now to login and update your profile. Read your messages and follow the instructions. e. We ll be using clickers to answer short questions in class and gauge participation and comprehension. Take a moment now to register your clicker at f. g. Complete the Lab 01 Quiz quiz on Learn. CS 105 Fall 2016 Lab 1 Page 1 of 10

2 3. D2 Algorithms and Code: Programming Rush Hour Rush Hour is a puzzle game where players move a red car to an exit on the right side of a grid. The challenge is that there are other cars and trucks in the way. Players must move the other cars vertically or horizontally along spaces of the grid to make a path for the red car. You can only move vehicles forward or backward (not sideways) and they must always be on the board. Here is a link to a knockoff, online version of Rush Hour so you can see how it works (sorry it s Flash, sorry about the ads): In order to make a path for the red car to the exit, players must follow a series of steps to move the other vehicles. You should recognize this as an algorithm. You re going to write a computer program that expresses an algorithm to move the different vehicles and solve a specific starting state of the game board. NOTE: Just to be clear, you ll be using a made-up set of code that you ll type into the Processing IDE, but your program won t actually run in Processing. In our made-up programming language for playing Rush Hour, there are four different functions to move a vehicle by one square in the direction stated. moveup( ); movedown( ); moveleft( ); moveright( ); When you write your code, you replace the symbol with the name of colour of the vehicle you are trying to move. CS 105 Fall 2016 Lab 1 Page 2 of 10

3 Here are all the vehicle colour names that can be used: RED YELLOW GREEN BLUE ORANGE PURPLE TEAL Remember: since this a computer program, you have to be very precise in how you write the function and the colour name in terms of lowercase and uppercase letters. You use these functions to change the state of the game board. Let s say the game board is in State A (shown below) and you want to move the green car up one space to change the board to State B. You would write the following code in a small computer program to express this simple algorithm. Remember that computer code has a very particular syntax. The name of the function must be an exact match, even the pattern of uppercase and lowercase letters. A semicolon must be at the end of each line. State A (Starting State) State B Legal Moves: just like in real life, vehicles can only move forward or backward based on the orientation of the vehicle in the grid. This means that some function calls would result in an error. For example, calling moveup(orange) when the game is in State A would cause an error. CS 105 Fall 2016 Lab 1 Page 3 of 10

4 An error will also occur if a function call tries to move a vehicle off of the board like moveleft(orange). To move a vehicle multiple squares, you have to use the same function multiple times. For example, to move the yellow truck down two squares, then we would write the following program: This would change the game board from State B to State C (shown below). State B State C Now that the green car and yellow truck are out of the way and the game is in State C, you can move the red car to the exit using a special function: This command moves the red car completely through the exit if the way is clear, but if there are vehicles in the way it will crash (result in an error). Since the way was clear in State C, this function moves the game to State D and solve the puzzle. State C State D CS 105 Fall 2016 Lab 1 Page 4 of 10

5 (Solved!) You can combine these three steps into a single algorithm to solve the puzzle beginning in State A. You can express your algorithm in a single program like this: In fact, there is more than one algorithm to solve a game starting in State A. For example, this is an alternative sequence of code that will also solve the puzzle and finish in State D : Note that not all programs using these four functions are solutions, for example this will result in a crash when exitred() is called. You can even write a program that solves the game starting in State A but finishing in a different final state: movedown(green); movedown(green); CS 105 Fall 2016 Lab 1 Page 5 of 10

6 Below is another example program that solves the following initial puzzle state: Exercises moveleft(red); moveleft(yellow); moveleft(yellow); movedown(orange); Now that you understand the game and the commands available, complete for following questions by writing code in the Processing IDE and saving each solution as a sketch. Remember, there will often be multiple algorithms that all solve the puzzle. As an extra challenge, try to find the most efficient one with the fewest steps. a. SAVE your solution to the starting state below as L1_rushhour_a CS 105 Fall 2016 Lab 1 Page 6 of 10

7 b. SAVE your solution to the starting state below as L1_rushhour_b c. SAVE your solution to the starting state below as L1_rushhour_c d. SAVE your solution to the starting state below as L1_rushhour_d CS 105 Fall 2016 Lab 1 Page 7 of 10

8 4. D2 Programming Rush Hour with Loops In the previous question, moving a vehicle multiple spaces required calling the same function multiple times. It would be nicer if we could just tell the computer to call the same function a certain number of times. We can do this using a loop command. Real Processing loops will be introduced later in the course, but for now we ll use the following simplified notation in our made-up programming language for Rush Hour. loop(n) } where you is replaced with one of the four functions to move a vehicle and you replace n with the number of times you wish to call that function. For example, instead of moving the orange car to the right five squares like this: you can create a loop instead, and write your code like this: loop(5) { } This is easier to read and easier to write. Notice the curly brackets and the way the code is indented. Code within the curly brackets is called a code block, and it defines the code that is repeated by the loop. Indentation is used to make the code more readable. Whenever there is an open curly bracket, the code that follows is indented to show the reader that that code belongs to that function. Note that as a matter of style, a loop should only be used when you wish to do a command multiple times in a row. A loop that is executed once is redundant. Here s an example using loops for the game starting in State A (the first example in part 3): CS 105 Fall 2016 Lab 1 Page 8 of 10

9 loop(2) { } Here is another example program to solve the following initial puzzle state (the same as the final example for part 3): moveleft(red); loop(4) { } loop(2) { moveleft(yellow); } movedown(orange); Exercises Rewrite your code from parts a, b, c, and d in question 3 using loops where possible. SAVE the sketches as L1_loops_a, L1_loops_b, L1_loops_c, and L1_loops_d CS 105 Fall 2016 Lab 1 Page 9 of 10

10 Submitting Submit the following files to the lab dropbox (under Assessments on Learn): L1_rushhour_b L1_rushhour_c L1_rushhour_d L1_loops_b L1_loops_c L1_loops_d Consult How to Submit: Handing in Code for Labs and Assignments on Learn. It is your responsibility to submit to the correct dropbox with the correct files before the deadline. Otherwise you will receive a mark of 0. CS 105 Fall 2016 Lab 1 Page 10 of 10

Unit 12: Artificial Intelligence CS 101, Fall 2018

Unit 12: Artificial Intelligence CS 101, Fall 2018 Unit 12: Artificial Intelligence CS 101, Fall 2018 Learning Objectives After completing this unit, you should be able to: Explain the difference between procedural and declarative knowledge. Describe the

More information

CMPS 12A Introduction to Programming Programming Assignment 5 In this assignment you will write a Java program that finds all solutions to the n-queens problem, for. Begin by reading the Wikipedia article

More information

CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm

CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm Weight: 8% Individual Work: All assignments in this course are to be completed individually. Students are advised to read the guidelines

More information

The 2017 British Informatics Olympiad

The 2017 British Informatics Olympiad Time allowed: 3 hours The 017 British Informatics Olympiad Instructions You should write a program for part (a) of each question, and produce written answers to the remaining parts. Programs may be used

More information

Where's the Treasure?

Where's the Treasure? Where's the Treasure? Introduction: In this project you will use the joystick and LED Matrix on the Sense HAT to play a memory game. The Sense HAT will show a gold coin and you have to remember where it

More information

Taffy Tangle. cpsc 231 assignment #5. Due Dates

Taffy Tangle. cpsc 231 assignment #5. Due Dates cpsc 231 assignment #5 Taffy Tangle If you ve ever played casual games on your mobile device, or even on the internet through your browser, chances are that you ve spent some time with a match three game.

More information

Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2 ), the Processing Language and IDE, and Saving and Submitting.

Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2 ), the Processing Language and IDE, and Saving and Submitting. Lab 4 Due: Fri, Oct 7, 9 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2 ), the Processing Language and IDE, and Saving and Submitting. Rules: Do not use the translate(),

More information

1. Exercises in simple sketches. All use the default 100 x 100 canvas.

1. Exercises in simple sketches. All use the default 100 x 100 canvas. Lab 3 Due: Fri, Oct 2, 9 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2, D3 ), the Processing Language and IDE, and Saving and Submitting. Rules: Do not use the

More information

Lesson 8 Tic-Tac-Toe (Noughts and Crosses)

Lesson 8 Tic-Tac-Toe (Noughts and Crosses) Lesson Game requirements: There will need to be nine sprites each with three costumes (blank, cross, circle). There needs to be a sprite to show who has won. There will need to be a variable used for switching

More information

Activity 6: Playing Elevens

Activity 6: Playing Elevens Activity 6: Playing Elevens Introduction: In this activity, the game Elevens will be explained, and you will play an interactive version of the game. Exploration: The solitaire game of Elevens uses a deck

More information

Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours! Scratch 2 Memory All Code Clubs must be registered. Registered clubs appear on the map at codeclubworld.org - if your club is not on the map then visit jumpto.cc/ccwreg to register your club. Introduction

More information

The 2013 British Informatics Olympiad

The 2013 British Informatics Olympiad Sponsored by Time allowed: 3 hours The 2013 British Informatics Olympiad Instructions You should write a program for part (a) of each question, and produce written answers to the remaining parts. Programs

More information

Lab 8. Due: Fri, Nov 18, 9:00 AM

Lab 8. Due: Fri, Nov 18, 9:00 AM Lab 8 Due: Fri, Nov 18, 9:00 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2, D3 ), the Processing Language and IDE, and Saving and Submitting. Rules: Do not use

More information

CPSC 217 Assignment 3

CPSC 217 Assignment 3 CPSC 217 Assignment 3 Due: Friday November 24, 2017 at 11:55pm Weight: 7% Sample Solution Length: Less than 100 lines, including blank lines and some comments (not including the provided code) Individual

More information

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours! Memory Introduction In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours! Step 1: Random colours First, let s create a character that can change

More information

GET OVERLAPPED! Author: Huang Yi. Forum thread:

GET OVERLAPPED! Author: Huang Yi. Forum thread: GET OVERLAPPED! Author: Huang Yi Test page: http://logicmastersindia.com/2019/02s/ Forum thread: http://logicmastersindia.com/forum/forums/thread-view.asp?tid=2690 About this Test: This test presents a

More information

In the game of Chess a queen can move any number of spaces in any linear direction: horizontally, vertically, or along a diagonal.

In the game of Chess a queen can move any number of spaces in any linear direction: horizontally, vertically, or along a diagonal. CMPS 12A Introduction to Programming Winter 2013 Programming Assignment 5 In this assignment you will write a java program finds all solutions to the n-queens problem, for 1 n 13. Begin by reading the

More information

Games of Skill Lesson 1 of 9, work in pairs

Games of Skill Lesson 1 of 9, work in pairs Lesson 1 of 9, work in pairs 21 (basic version) The goal of the game is to get the other player to say the number 21. The person who says 21 loses. The first person starts by saying 1. At each turn, the

More information

CMPT 125/128 with Dr. Fraser. Assignment 3

CMPT 125/128 with Dr. Fraser. Assignment 3 Assignment 3 Due Wednesday June 22, 2011 by 11:59pm Submit all the deliverables to the Course Management System: https://courses.cs.sfu.ca/ There is no possibility of turning the assignment in late. The

More information

Sample VA Technical Documentation Assessments

Sample VA Technical Documentation Assessments Sample 243-251-VA Technical Documentation Assessments EVALUATION OF ASSESSMENT TOOLS USED TO MEASURE ACHIEVEMENT OF IET COURSE COMPETENCIES Please attach copies of all assessment tools used in this section

More information

George Fox University H.S. Programming Contest Division - I 2018

George Fox University H.S. Programming Contest Division - I 2018 General Notes George Fox University H.S. Programming Contest Division - I 2018 1. Do the problems in any order you like. They do not have to be done in order (hint: the easiest problem may not be the first

More information

1 Modified Othello. Assignment 2. Total marks: 100. Out: February 10 Due: March 5 at 14:30

1 Modified Othello. Assignment 2. Total marks: 100. Out: February 10 Due: March 5 at 14:30 CSE 3402 3.0 Intro. to Concepts of AI Winter 2012 Dept. of Computer Science & Engineering York University Assignment 2 Total marks: 100. Out: February 10 Due: March 5 at 14:30 Note 1: To hand in your report

More information

CSC 110 Lab 4 Algorithms using Functions. Names:

CSC 110 Lab 4 Algorithms using Functions. Names: CSC 110 Lab 4 Algorithms using Functions Names: Tic- Tac- Toe Game Write a program that will allow two players to play Tic- Tac- Toe. You will be given some code as a starting point. Fill in the parts

More information

CS1301 Individual Homework 5 Olympics Due Monday March 7 th, 2016 before 11:55pm Out of 100 Points

CS1301 Individual Homework 5 Olympics Due Monday March 7 th, 2016 before 11:55pm Out of 100 Points CS1301 Individual Homework 5 Olympics Due Monday March 7 th, 2016 before 11:55pm Out of 100 Points File to submit: hw5.py THIS IS AN INDIVIDUAL ASSIGNMENT!!!!! Collaboration at a reasonable level will

More information

CS 32 Puzzles, Games & Algorithms Fall 2013

CS 32 Puzzles, Games & Algorithms Fall 2013 CS 32 Puzzles, Games & Algorithms Fall 2013 Study Guide & Scavenger Hunt #2 November 10, 2014 These problems are chosen to help prepare you for the second midterm exam, scheduled for Friday, November 14,

More information

Copies of the Color by Pixel template sheets (included in the Resources section). Colored pencils, crayons, markers, or other supplies for coloring.

Copies of the Color by Pixel template sheets (included in the Resources section). Colored pencils, crayons, markers, or other supplies for coloring. This offline lesson plan covers the basics of computer graphics. After learning about how graphics work, students will create their own Color by Pixel programs. The lesson plan consists of four parts,

More information

Games of Skill ANSWERS Lesson 1 of 9, work in pairs

Games of Skill ANSWERS Lesson 1 of 9, work in pairs Lesson 1 of 9, work in pairs 21 (basic version) The goal of the game is to get the other player to say the number 21. The person who says 21 loses. The first person starts by saying 1. At each turn, the

More information

Scratch LED Rainbow Matrix. Teacher Guide. Product Code: EL Scratch LED Rainbow Matrix - Teacher Guide

Scratch LED Rainbow Matrix. Teacher Guide.   Product Code: EL Scratch LED Rainbow Matrix - Teacher Guide 1 Scratch LED Rainbow Matrix - Teacher Guide Product Code: EL00531 Scratch LED Rainbow Matrix Teacher Guide www.tts-shopping.com 2 Scratch LED Rainbow Matrix - Teacher Guide Scratch LED Rainbow Matrix

More information

2 Textual Input Language. 1.1 Notation. Project #2 2

2 Textual Input Language. 1.1 Notation. Project #2 2 CS61B, Fall 2015 Project #2: Lines of Action P. N. Hilfinger Due: Tuesday, 17 November 2015 at 2400 1 Background and Rules Lines of Action is a board game invented by Claude Soucie. It is played on a checkerboard

More information

Table of content. 1. How do I access RBSelectOnline? 2. I m new, how do I login? 3. I ve used RBSelectOnline before how do I re-set my password?

Table of content. 1. How do I access RBSelectOnline? 2. I m new, how do I login? 3. I ve used RBSelectOnline before how do I re-set my password? RBSelectOnline Table of content 1. How do I access RBSelectOnline? 2. I m new, how do I login? 3. I ve used RBSelectOnline before how do I re-set my password? 4. What can I elect and when? 5. How do I

More information

Connect 4. Figure 1. Top level simplified block diagram.

Connect 4. Figure 1. Top level simplified block diagram. Connect 4 Jonathon Glover, Ryan Sherry, Sony Mathews and Adam McNeily Electrical and Computer Engineering Department School of Engineering and Computer Science Oakland University, Rochester, MI e-mails:jvglover@oakland.edu,

More information

Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am

Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am The purpose of this assignment is to program some of the search algorithms

More information

INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1

INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1 INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1 1 The game of Sudoku Sudoku is a game that is currently quite popular and giving crossword puzzles a run for their money

More information

Sudoku Mock Test 5. Instruction Booklet. 28 th December, IST (GMT ) 975 points + Time Bonus. Organized by. Logic Masters: India

Sudoku Mock Test 5. Instruction Booklet. 28 th December, IST (GMT ) 975 points + Time Bonus. Organized by. Logic Masters: India Sudoku Mock Test 5 Instruction Booklet 28 th December, 2008 14.30 16.30 IST (GMT + 5.30) 975 points + Time Bonus Organized by Logic Masters: India Points Distribution No. Sudoku Points Puzzle Creator 1

More information

MATHEMATICAL RELATIONAL SKILLS AND COUNTING

MATHEMATICAL RELATIONAL SKILLS AND COUNTING MATHEMATICAL RELATIONAL SKILLS AND COUNTING 0 1000 Mathematical relational skills and counting 0-1000 ThinkMath 2017 MATHEMATICAL RELATIONAL SKILLS AND COUNTING 0 1000 The Mathematical relational skills

More information

Unicorn Printable Pack

Unicorn Printable Pack Unicorn Printable Pack !"#$%&"'()*+,"-./+0")("'1234+"5161/78"9:+)(16+"5+):/1/7 ;44":17."3):(".?"(

More information

January 11, 2017 Administrative notes

January 11, 2017 Administrative notes January 11, 2017 Administrative notes Clickers Updated on Canvas as of people registered yesterday night. REEF/iClicker mobile is not working for everyone. Use at your own risk. If you are having trouble

More information

Welcome to the Sudoku and Kakuro Help File.

Welcome to the Sudoku and Kakuro Help File. HELP FILE Welcome to the Sudoku and Kakuro Help File. This help file contains information on how to play each of these challenging games, as well as simple strategies that will have you solving the harder

More information

CSE 3401 Assignment 4 Winter Date out: March 26. Date due: April 6, at 11:55 pm

CSE 3401 Assignment 4 Winter Date out: March 26. Date due: April 6, at 11:55 pm CSE 3401 Assignment 4 Winter 2013 Date out: March 26. Date due: April 6, at 11:55 pm The submitted assignment must be based on your individual work. Review the Academic Honesty Guidelines for more details.

More information

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Programming a Servo. Servo. Red Wire. Black Wire. White Wire Programming a Servo Learn to connect wires and write code to program a Servo motor. If you have gone through the LED Circuit and LED Blink exercises, you are ready to move on to programming a Servo. A

More information

Name EET 1131 Lab #2 Oscilloscope and Multisim

Name EET 1131 Lab #2 Oscilloscope and Multisim Name EET 1131 Lab #2 Oscilloscope and Multisim Section 1. Oscilloscope Introduction Equipment and Components Safety glasses Logic probe ETS-7000 Digital-Analog Training System Fluke 45 Digital Multimeter

More information

Lecture Week 5. Voltage Divider Method Equivalent Circuits Review Lab Report Template and Rubric Workshop

Lecture Week 5. Voltage Divider Method Equivalent Circuits Review Lab Report Template and Rubric Workshop Lecture Week 5 Voltage Divider Method Equivalent Circuits Review Lab Report Template and Rubric Workshop Voltage Divider Method The voltage divider is a method/tool that can be used to: Design voltage

More information

Rubik s Revenge Solution Hints Booklet. Revenge - The Ultimate Challenge 2. Meet Your Revenge 3. Twisting Hints 5. General Hints 8. Notation System 12

Rubik s Revenge Solution Hints Booklet. Revenge - The Ultimate Challenge 2. Meet Your Revenge 3. Twisting Hints 5. General Hints 8. Notation System 12 Rubik s Revenge Solution Hints Booklet Revenge - The Ultimate Challenge 2 Meet Your Revenge 3 Twisting Hints 5 General Hints 8 Notation System 12 Revenge Sequences 19 Solving Rubik s Revenge 28 More Revenge

More information

Pull Down Menu View Toolbar Design Toolbar

Pull Down Menu View Toolbar Design Toolbar Pro/DESKTOP Interface The instructions in this tutorial refer to the Pro/DESKTOP interface and toolbars. The illustration below describes the main elements of the graphical interface and toolbars. Pull

More information

Due: Sunday 13 November by 10:59pm Worth: 8%

Due: Sunday 13 November by 10:59pm Worth: 8% CSC 8 HF Project # General Instructions Fall Due: Sunday Novemer y :9pm Worth: 8% Sumitting your project You must hand in your work electronically, using the MarkUs system. Log in to https://markus.teach.cs.toronto.edu/csc8--9/en/main

More information

SudokuSplashZone. Overview 3

SudokuSplashZone. Overview 3 Overview 3 Introduction 4 Sudoku Game 4 Game grid 4 Cell 5 Row 5 Column 5 Block 5 Rules of Sudoku 5 Entering Values in Cell 5 Solver mode 6 Drag and Drop values in Solver mode 6 Button Inputs 7 Check the

More information

For slightly more detailed instructions on how to play, visit:

For slightly more detailed instructions on how to play, visit: Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! The purpose of this assignment is to program some of the search algorithms and game playing strategies that we have learned

More information

Assignment 2 (Part 1 of 2), University of Toronto, CSC384 - Intro to AI, Winter

Assignment 2 (Part 1 of 2), University of Toronto, CSC384 - Intro to AI, Winter Assignment 2 (Part 1 of 2), University of Toronto, CSC384 - Intro to AI, Winter 2011 1 Computer Science 384 February 20, 2011 St. George Campus University of Toronto Homework Assignment #2 (Part 1 of 2)

More information

Created by: Susan Miller, University of Colorado, School of Education

Created by: Susan Miller, University of Colorado, School of Education You are a warehouse keeper (Sokoban) who is in a maze. You must push boxes around the maze while trying to put them in the designated locations. Only one box may be pushed at a time, and boxes cannot be

More information

Assignment 6 Play A Game: Minesweeper or Battleship!!! Due: Sunday, December 3rd, :59pm

Assignment 6 Play A Game: Minesweeper or Battleship!!! Due: Sunday, December 3rd, :59pm Assignment 6 Play A Game: Minesweeper or Battleship!!! Due: Sunday, December 3rd, 2017 11:59pm This will be our last assignment in the class, boohoo Grading: For this assignment, you will be graded traditionally,

More information

Math Stories and Games: Logic, Patterns and Mathematical Thinking

Math Stories and Games: Logic, Patterns and Mathematical Thinking Math Stories and Games: Logic, Patterns and Mathematical Thinking Anna Shevyakova, Alexey Shevyakov............... Lesson 1. Attributes of Objects Dad, play with me, I am bored! Nicky called his father.

More information

This course involves writing and revising a research paper on a topic of your choice, and helping other students with their research papers.

This course involves writing and revising a research paper on a topic of your choice, and helping other students with their research papers. Liberal Studies 4800, Senior Capstone Seminar Dr. Daniel Kolak, Atrium 109, kolakd@wpunj.edu Welcome to the Liberal Studies Capstone Seminar! General Information This course involves writing and revising

More information

Arcade Game Maker Product Line Requirements Model

Arcade Game Maker Product Line Requirements Model Arcade Game Maker Product Line Requirements Model ArcadeGame Team July 2003 Table of Contents Overview 2 1.1 Identification 2 1.2 Document Map 2 1.3 Concepts 3 1.4 Reusable Components 3 1.5 Readership

More information

Group Project. 1 Monopoly. 1.1 Brief description of the problem. 1.2 Dice rolling. #Or just the same: sample( seq(1, 6), 1) #Or:

Group Project. 1 Monopoly. 1.1 Brief description of the problem. 1.2 Dice rolling. #Or just the same: sample( seq(1, 6), 1) #Or: Group Project 1 Monopoly 1.1 Brief description of the problem We wish to determine which squares a player is most likely to land on during a game of Monopoly. To simplify things, we assume there is only

More information

Answers for Chapter 4 Masters

Answers for Chapter 4 Masters Answers for Chapter 4 Masters Scaffolding Answers Scaffolding for Getting Started Activity A. For example, 7 8 14 15 The sum of the numbers in one diagonal is 22. The sum of the number in the other diagonal

More information

a b c d e f g h 1 a b c d e f g h C A B B A C C X X C C X X C C A B B A C Diagram 1-2 Square names

a b c d e f g h 1 a b c d e f g h C A B B A C C X X C C X X C C A B B A C Diagram 1-2 Square names Chapter Rules and notation Diagram - shows the standard notation for Othello. The columns are labeled a through h from left to right, and the rows are labeled through from top to bottom. In this book,

More information

Solidworks tutorial. 3d sketch project. A u t h o r : M. G h a s e m i. C o n t a c t u s : i n f s o l i d w o r k s a d v i s o r.

Solidworks tutorial. 3d sketch project. A u t h o r : M. G h a s e m i. C o n t a c t u s : i n f s o l i d w o r k s a d v i s o r. Solidworks tutorial 3d sketch project A u t h o r : M. G h a s e m i C o n t a c t u s : i n f o @ s o l i d w o r k s a d v i s o r. c o m we will create this frame during the tutorial : In this tutorial

More information

Prolegomena. Chapter Using Interval Notation 1

Prolegomena. Chapter Using Interval Notation 1 Chapter 1 Prolegomena 1.1 Using Interval Notation 1 Interval notation is another method for writing domain and range. In set builder notation braces (curly parentheses {} ) and variables are used to express

More information

MANIPULATIVE MATHEMATICS FOR STUDENTS

MANIPULATIVE MATHEMATICS FOR STUDENTS MANIPULATIVE MATHEMATICS FOR STUDENTS Manipulative Mathematics Using Manipulatives to Promote Understanding of Elementary Algebra Concepts Lynn Marecek MaryAnne Anthony-Smith This file is copyright 07,

More information

15 TUBE CLEANER: A SIMPLE SHOOTING GAME

15 TUBE CLEANER: A SIMPLE SHOOTING GAME 15 TUBE CLEANER: A SIMPLE SHOOTING GAME Tube Cleaner was designed by Freid Lachnowicz. It is a simple shooter game that takes place in a tube. There are three kinds of enemies, and your goal is to collect

More information

Ÿ 8.1 The Multiplication Principle; Permutations

Ÿ 8.1 The Multiplication Principle; Permutations Ÿ 8.1 The Multiplication Principle; Permutations The Multiplication Principle Example 1. Suppose the city council needs to hold a town hall meeting. The options for scheduling the meeting are either Monday,

More information

Printing: You may print to the printer at any time during the test.

Printing: You may print to the printer at any time during the test. UW Madison's 2006 ACM-ICPC Individual Placement Test October 1, 12:00-5:00pm, 1350 CS Overview: This test consists of seven problems, which will be referred to by the following names (respective of order):

More information

G51PGP: Software Paradigms. Object Oriented Coursework 4

G51PGP: Software Paradigms. Object Oriented Coursework 4 G51PGP: Software Paradigms Object Oriented Coursework 4 You must complete this coursework on your own, rather than working with anybody else. To complete the coursework you must create a working two-player

More information

Introduction to programming with Fable

Introduction to programming with Fable How to get started. You need a dongle and a joint module (the actual robot) as shown on the right. Put the dongle in the computer, open the Fable programme and switch on the joint module on the page. The

More information

Addendum 18: The Bezier Tool in Art and Stitch

Addendum 18: The Bezier Tool in Art and Stitch Addendum 18: The Bezier Tool in Art and Stitch About the Author, David Smith I m a Computer Science Major in a university in Seattle. I enjoy exploring the lovely Seattle area and taking in the wonderful

More information

Final Project: Reversi

Final Project: Reversi Final Project: Reversi Reversi is a classic 2-player game played on an 8 by 8 grid of squares. Players take turns placing pieces of their color on the board so that they sandwich and change the color of

More information

Keeping secrets secret

Keeping secrets secret Keeping s One of the most important concerns with using modern technology is how to keep your s. For instance, you wouldn t want anyone to intercept your emails and read them or to listen to your mobile

More information

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs 10-11 Introduction to Arduino In this lab we will introduce the idea of using a microcontroller as a tool for controlling

More information

Some code for this game has been provided for you. Open this trinket: This is a very basic RPG game that only has 2 rooms. Here s a map of the game:

Some code for this game has been provided for you. Open this trinket: This is a very basic RPG game that only has 2 rooms. Here s a map of the game: RPG Introduction: In this project, you ll design and code your own RPG maze game. The aim of the game will be to collect objects and escape from a house, making sure to avoid all the monsters! Step 1:

More information

In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program.

In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program. Team Chooser Introduction: In this project, you ll learn how to create 2 random teams from a list of players. Step 1: Players Let s start by creating a list of players to choose from. Activity Checklist

More information

CS151 - Assignment 2 Mancala Due: Tuesday March 5 at the beginning of class

CS151 - Assignment 2 Mancala Due: Tuesday March 5 at the beginning of class CS151 - Assignment 2 Mancala Due: Tuesday March 5 at the beginning of class http://www.clubpenguinsaraapril.com/2009/07/mancala-game-in-club-penguin.html The purpose of this assignment is to program some

More information

CMPT 310 Assignment 1

CMPT 310 Assignment 1 CMPT 310 Assignment 1 October 16, 2017 100 points total, worth 10% of the course grade. Turn in on CourSys. Submit a compressed directory (.zip or.tar.gz) with your solutions. Code should be submitted

More information

Assignment III: Graphical Set

Assignment III: Graphical Set Assignment III: Graphical Set Objective The goal of this assignment is to gain the experience of building your own custom view, including handling custom multitouch gestures. Start with your code in Assignment

More information

Getting Started with Osmo Coding Jam. Updated

Getting Started with Osmo Coding Jam. Updated Updated 8.1.17 1.1.0 What s Included Each set contains 23 magnetic coding blocks. Snap them together in coding sequences to create an endless variety of musical compositions! Walk Quantity: 3 Repeat Quantity:

More information

Project 2: Searching and Learning in Pac-Man

Project 2: Searching and Learning in Pac-Man Project 2: Searching and Learning in Pac-Man December 3, 2009 1 Quick Facts In this project you have to code A* and Q-learning in the game of Pac-Man and answer some questions about your implementation.

More information

A few chessboards pieces: 2 for each student, to play the role of knights.

A few chessboards pieces: 2 for each student, to play the role of knights. Parity Party Returns, Starting mod 2 games Resources A few sets of dominoes only for the break time! A few chessboards pieces: 2 for each student, to play the role of knights. Small coins, 16 per group

More information

The 2015 British Informatics Olympiad

The 2015 British Informatics Olympiad Time allowed: 3 hours The 2015 British Informatics Olympiad Instructions You should write a program for part (a) of each question, and produce written answers to the remaining parts. Programs may be used

More information

Answer Key Lesson 6: Workshop: Factors, Multiples, and Primes

Answer Key Lesson 6: Workshop: Factors, Multiples, and Primes 3 Answer Key Lesson 6: Student Activity Book Number and Multiplication Concepts Questions 1 27 (SAB pp. 61 7) 1. 21 and 99 are both multiples of 3; Possible response: I can make a rectangle that is 3 by

More information

UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010

UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010 UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010 Question Points 1 Environments /2 2 Python /18 3 Local and Heuristic Search /35 4 Adversarial Search /20 5 Constraint Satisfaction

More information

ADD A REALISTIC WATER REFLECTION

ADD A REALISTIC WATER REFLECTION ADD A REALISTIC WATER REFLECTION In this Photoshop photo effects tutorial, we re going to learn how to easily add a realistic water reflection to any photo. It s a very easy effect to create and you can

More information

FPGA Laboratory Assignment 5. Due Date: 26/11/2012

FPGA Laboratory Assignment 5. Due Date: 26/11/2012 FPGA Laboratory Assignment 5 Due Date: 26/11/2012 Aim The purpose of this lab is to help you understand the fundamentals image processing. Objectives Learn how to implement image processing operations

More information

B&W Photos from Colour:

B&W Photos from Colour: Quick and Dirty Methods for PS, PS Elements and Canon Software 8/1/2007 New Westminster Photography Club Derek Carlin New Westminster Photography Club Page 1 Introduction This is a very brief article on

More information

NX 7.5. Table of Contents. Lesson 3 More Features

NX 7.5. Table of Contents. Lesson 3 More Features NX 7.5 Lesson 3 More Features Pre-reqs/Technical Skills Basic computer use Completion of NX 7.5 Lessons 1&2 Expectations Read lesson material Implement steps in software while reading through lesson material

More information

CMPT 310 Assignment 1

CMPT 310 Assignment 1 CMPT 310 Assignment 1 October 4, 2017 100 points total, worth 10% of the course grade. Turn in on CourSys. Submit a compressed directory (.zip or.tar.gz) with your solutions. Code should be submitted as

More information

Faculty Forum You Cannot Conceive The Many Without The One -Plato-

Faculty Forum You Cannot Conceive The Many Without The One -Plato- Faculty Forum You Cannot Conceive The Many Without The One -Plato- Issue No. 17, Fall 2012 December 5, 2012 Japanese Ladder Game WEI-KAI LAI Assistant Professor of Mathematics (Joint work with Christopher

More information

SUDOKU Mahabharat. Episode 7 21 st 23 rd March. Converse by Swaroop Guggilam

SUDOKU Mahabharat. Episode 7 21 st 23 rd March. Converse by Swaroop Guggilam Episode 7 21 st 23 rd March by Swaroop Guggilam Important Links Submission Page : http://logicmastersindia.com/sm/201503/ Discussion Thread : http://logicmastersindia.com/t/?tid=936 bout Sudoku Mahabharat

More information

CS61B, Fall 2014 Project #2: Jumping Cubes(version 3) P. N. Hilfinger

CS61B, Fall 2014 Project #2: Jumping Cubes(version 3) P. N. Hilfinger CSB, Fall 0 Project #: Jumping Cubes(version ) P. N. Hilfinger Due: Tuesday, 8 November 0 Background The KJumpingCube game is a simple two-person board game. It is a pure strategy game, involving no element

More information

50 Graded Trax Problems with solutions. Collected and annotated by Martin Møller Skarbiniks Pedersen

50 Graded Trax Problems with solutions. Collected and annotated by Martin Møller Skarbiniks Pedersen 50 Graded Trax Problems with solutions Collected and annotated by Martin Møller Skarbiniks Pedersen Second edition September 2011 Dear reader, I started collecting trax puzzles several years ago and now

More information

Candidate Instructions

Candidate Instructions Create Software Components Using Java - Level 2 Assignment 7262-22-205 Create Software Components Using Java Level 2 Candidates are advised to read all instructions carefully before starting work and to

More information

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101 RGB COLORS Clicker Question How many numbers are commonly used to specify the colour of a pixel? A. 1 B. 2 C. 3 D. 4 or more 2 Yellow = R + G? Combining red and green makes yellow Taught in elementary

More information

OFFROAD THUNDER TM OPERATION CHAPTER. NOTICE: The term VGM refers to the video game machine. Operation 2-1

OFFROAD THUNDER TM OPERATION CHAPTER. NOTICE: The term VGM refers to the video game machine. Operation 2-1 OFFROAD THUNDER TM 2 CHAPTER OPERATION NOTICE: The term VGM refers to the video game machine. Operation 2-1 GAME OPERATION STARTING UP Whenever you turn on the machine or restore power, the system executes

More information

SET-UP QUALIFYING. x7 x4 x2. x1 x3

SET-UP QUALIFYING. x7 x4 x2. x1 x3 +D +D from lane + from mph lane from + mph lane + from mph lane + mph This demonstration race will walk you through set-up and the first four turns of a one- race to teach you the basics of the game. ;

More information

The game of Paco Ŝako

The game of Paco Ŝako The game of Paco Ŝako Created to be an expression of peace, friendship and collaboration, Paco Ŝako is a new and dynamic chess game, with a mindful touch, and a mind-blowing gameplay. Two players sitting

More information

E. Slope-Intercept Form and Direct Variation (pp )

E. Slope-Intercept Form and Direct Variation (pp ) and Direct Variation (pp. 32 35) For any two points, there is one and only one line that contains both points. This fact can help you graph a linear equation. Many times, it will be convenient to use the

More information

Comp th February Due: 11:59pm, 25th February 2014

Comp th February Due: 11:59pm, 25th February 2014 HomeWork Assignment 2 Comp 590.133 4th February 2014 Due: 11:59pm, 25th February 2014 Getting Started What to submit: Written parts of assignment and descriptions of the programming part of the assignment

More information

We hope you enjoy the set. Good luck for the Indian Puzzle Championship! 3 A B C 4 H D 5 G F E 7 A B 8 H 9 G F

We hope you enjoy the set. Good luck for the Indian Puzzle Championship! 3 A B C 4 H D 5 G F E 7 A B 8 H 9 G F Notes:. All Puzzle rules have been copied from the IP 0 Instruction booklet. Participants are advised to have a look at the booklet before trying out these puzzles, as they contain easier examples with

More information

Assignment 2, University of Toronto, CSC384 - Intro to AI, Winter

Assignment 2, University of Toronto, CSC384 - Intro to AI, Winter Assignment 2, University of Toronto, CSC384 - Intro to AI, Winter 2014 1 Computer Science 384 March 5, 2014 St. George Campus University of Toronto Homework Assignment #2 Game Tree Search Due: Mon March

More information

F1 in Schools Tutorial 1 A Step by Step Guide To Drawing a. Bloodhound Block In SolidWorks

F1 in Schools Tutorial 1 A Step by Step Guide To Drawing a. Bloodhound Block In SolidWorks F in Schools Tutorial A Step by Step Guide To Drawing a Bloodhound Block In SolidWorks There are 7 Achievement Points to Collect During This Tutorial! Requirements: SolidWorks Student Edition or SolidWorks

More information

Stratigraphy Modeling Boreholes and Cross Sections

Stratigraphy Modeling Boreholes and Cross Sections GMS TUTORIALS Stratigraphy Modeling Boreholes and Cross Sections The Borehole module of GMS can be used to visualize boreholes created from drilling logs. Also three-dimensional cross sections between

More information

ASSIGNMENT for PROJECT 2: BALANCE

ASSIGNMENT for PROJECT 2: BALANCE ASSIGNMENT for PROJECT 2: BALANCE After reading the chapter on Balance from your text, Design Basics, and the online lecture material and activities (movies from Lynda.com) for Balance, begin working in

More information