Pointers. The Rectangle Game. Robb T. Koether. Hampden-Sydney College. Mon, Jan 21, 2013

Size: px
Start display at page:

Download "Pointers. The Rectangle Game. Robb T. Koether. Hampden-Sydney College. Mon, Jan 21, 2013"

Transcription

1 Pointers The Rectangle Game Robb T. Koether Hampden-Sydney College Mon, Jan 21, 2013 Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

2 1 Introduction 2 The Game Board 3 The Move Class 4 Strategy 5 The solve_puzzle() Function 6 Other Functions Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

3 Outline 1 Introduction 2 The Game Board 3 The Move Class 4 Strategy 5 The solve_puzzle() Function 6 Other Functions Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

4 The Rectangle Puzzle The Rectangle Puzzle is like the Triangle Puzzle, but it is played on a rectangle. The game board is a rectangular array of holes. Every hole but one contains a peg. A legal move is to use one peg to jump an adjacent peg, vertically or horizontally, into an empty hole. The object of the game is to eliminate all but one peg. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

5 Example A 3 4 rectangle game Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

6 Example (0, 2) jumps (0, 1) into (0, 0) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

7 Example (2, 2) jumps (1, 2) into (0, 2) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

8 Example (0, 3) jumps (0, 2) into (0, 1) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

9 Example (0, 0) jumps (0, 1) into (0, 2) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

10 Example (2, 3) jumps (1, 3) into (0, 3) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

11 Example (1, 0) jumps (1, 1) into (1, 2) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

12 Example (2, 0) jumps (2, 1) into (2, 2) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

13 Example (0, 3) jumps (0, 2) into (0, 1) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

14 Example (2, 2) jumps (1, 2) into (0, 2) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

15 Example (0, 2) jumps (0, 1) into (0, 0) Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

16 Outline 1 Introduction 2 The Game Board 3 The Move Class 4 Strategy 5 The solve_puzzle() Function 6 Other Functions Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

17 The Game Board The user will enter the dimensions of the game board (number of rows and number of columns). The game board size is limited to 8 8. The game board is a two-dimensional array of bools, initialized to true, meaning there is a peg in each hole. bool board[8][8]; The user will enter the position of the empty hole. That element of the game board will be set to false, meaning no peg. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

18 Outline 1 Introduction 2 The Game Board 3 The Move Class 4 Strategy 5 The solve_puzzle() Function 6 Other Functions Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

19 The Move Class I will provide a Move class. A Move object is a triple of Point2D objects, representing a possible move. Point2D jmpr; Point2D jmpd; Point2D dest; For example, {(0, 0), (0, 1), (0, 2)} is a possible move. It is a legal move is board[0][0] and board[0][1] are true and board[0][2] is false. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

20 The Possible Moves On an r c game board, how many possible moves are there? I will provide a function that will create an array of all possible moves. Move poss_move[196]; Why 196? Given the dimensions of the game board, the function will initialize the array. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

21 Outline 1 Introduction 2 The Game Board 3 The Move Class 4 Strategy 5 The solve_puzzle() Function 6 Other Functions Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

22 Strategy The strategy is to scan the list of possible moves, from first to last. As soon as a legal move is found, take it. That is, update the game board. After taking the move, scan the list again, from first to last, for the next move, and so on. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

23 Outline 1 Introduction 2 The Game Board 3 The Move Class 4 Strategy 5 The solve_puzzle() Function 6 Other Functions Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

24 The solve_puzzle() Function To simplify the management of the moves, write a recursive function solve_puzzle(). bool solve_puzzle(bool board[][8], Move poss[], int size int num_moves); The function will scan the list for the next legal move. When it finds one, it Updates the game board, Increments num_moves, and Calls on solve_puzzle(). Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

25 The solve_puzzle() Function If num_moves equals the necessary number to solve the puzzle, then solve_puzzle() returns true. If the recursive call to solve_puzzle() returns false, then the function will scan the list for the next legal move and repeat the above procedure. If the function reaches the end of the list of possible moves, then it returns false. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

26 Outline 1 Introduction 2 The Game Board 3 The Move Class 4 Strategy 5 The solve_puzzle() Function 6 Other Functions Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

27 Other Functions I suggest that you write some helpful functions. bool is_legal(bool board[ ][8], Move m); void make_move(bool board[][8], Move m); void undo_move(bool board[][8], Move m); Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

28 The is_legal() Function The is_legal() function will return true if the specified move is legal, given the current game board. This function needs to test whether the jumper and jumped holes are occupied and whether the destination hole is open. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

29 The make_move() Function The make_move() function will update the game board by Setting the jumper and jumped positions to false, and Setting the destination position to true. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

30 The undo_move() Function The undo_move() function will do the reverse of the make_move() function. Set the jumper and jumped positions to true, and Set the destination position to false. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

31 Project 1 The project is due by midnight, Monday, January 28. Turn in only the files that contain your work. Name the folder Project 1 and drag it to the dropbox. Robb T. Koether (Hampden-Sydney College) Pointers Mon, Jan 21, / 21

Recursive Triangle Puzzle

Recursive Triangle Puzzle Recursive Triangle Puzzle Lecture 36 Section 14.7 Robb T. Koether Hampden-Sydney College Fri, Dec 7, 2012 Robb T. Koether (Hampden-Sydney College) Recursive Triangle Puzzle Fri, Dec 7, 2012 1 / 17 1 The

More information

Digital Logic Circuits

Digital Logic Circuits Digital Logic Circuits Lecture 5 Section 2.4 Robb T. Koether Hampden-Sydney College Wed, Jan 23, 2013 Robb T. Koether (Hampden-Sydney College) Digital Logic Circuits Wed, Jan 23, 2013 1 / 25 1 Logic Gates

More information

Enhanced Turing Machines

Enhanced Turing Machines Enhanced Turing Machines Lecture 28 Sections 10.1-10.2 Robb T. Koether Hampden-Sydney College Wed, Nov 2, 2016 Robb T. Koether (Hampden-Sydney College) Enhanced Turing Machines Wed, Nov 2, 2016 1 / 21

More information

ENEE 150: Intermediate Programming Concepts for Engineers Spring 2018 Handout #7. Project #1: Checkers, Due: Feb. 19th, 11:59p.m.

ENEE 150: Intermediate Programming Concepts for Engineers Spring 2018 Handout #7. Project #1: Checkers, Due: Feb. 19th, 11:59p.m. ENEE 150: Intermediate Programming Concepts for Engineers Spring 2018 Handout #7 Project #1: Checkers, Due: Feb. 19th, 11:59p.m. In this project, you will build a program that allows two human players

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

Solitaire Games. MATH 171 Freshman Seminar for Mathematics Majors. J. Robert Buchanan. Department of Mathematics. Fall 2010

Solitaire Games. MATH 171 Freshman Seminar for Mathematics Majors. J. Robert Buchanan. Department of Mathematics. Fall 2010 Solitaire Games MATH 171 Freshman Seminar for Mathematics Majors J. Robert Buchanan Department of Mathematics Fall 2010 Standard Checkerboard Challenge 1 Suppose two diagonally opposite corners of the

More information

Counting and Probability

Counting and Probability Counting and Probability Lecture 42 Section 9.1 Robb T. Koether Hampden-Sydney College Wed, Apr 9, 2014 Robb T. Koether (Hampden-Sydney College) Counting and Probability Wed, Apr 9, 2014 1 / 17 1 Probability

More information

Second Annual University of Oregon Programming Contest, 1998

Second Annual University of Oregon Programming Contest, 1998 A Magic Magic Squares A magic square of order n is an arrangement of the n natural numbers 1,...,n in a square array such that the sums of the entries in each row, column, and each of the two diagonals

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

Subqueries Lecture 9

Subqueries Lecture 9 Subqueries Lecture 9 Robb T. Koether Hampden-Sydney College Mon, Feb 6, 2012 Robb T. Koether (Hampden-Sydney College) SubqueriesLecture 9 Mon, Feb 6, 2012 1 / 13 1 Subqueries 2 Robb T. Koether (Hampden-Sydney

More information

Rectangle Man. Lecture 9. Robb T. Koether. Hampden-Sydney College. Fri, Sep 8, 2017

Rectangle Man. Lecture 9. Robb T. Koether. Hampden-Sydney College. Fri, Sep 8, 2017 Rectangle Man Lecture 9 Robb T. Koether Hampden-Sydney College Fri, Sep 8, 2017 Robb T. Koether (Hampden-Sydney College) Rectangle Man Fri, Sep 8, 2017 1 / 18 Outline 1 Drawing Rectangle Man 2 Manipulating

More information

Coin Cappers. Tic Tac Toe

Coin Cappers. Tic Tac Toe Coin Cappers Tic Tac Toe Two students are playing tic tac toe with nickels and dimes. The player with the nickels has just moved. Itʼs now your turn. The challenge is to place your dime in the only square

More information

It Stands to Reason: Developing Inductive and Deductive Habits of Mind

It Stands to Reason: Developing Inductive and Deductive Habits of Mind It Stands to Reason: Developing Inductive and Deductive Habits of Mind Jeffrey Wanko Miami University wankojj@miamioh.edu Presented at a Meeting of the Greater Cleveland Council of Teachers of Mathematics

More information

Controlling Bias; Types of Variables

Controlling Bias; Types of Variables Controlling Bias; Types of Variables Lecture 11 Sections 3.5.2, 4.1-4.2 Robb T. Koether Hampden-Sydney College Mon, Feb 6, 2012 Robb T. Koether (Hampden-Sydney College) Controlling Bias;Types of Variables

More information

FEATURES 24 PUZZLES, ASSORTED MIX, MOSTLY THEMED ON 24 HPC. HINTS FOR EACH PUZZLE. SOLUTIONS FOR EACH PUZZLE.

FEATURES 24 PUZZLES, ASSORTED MIX, MOSTLY THEMED ON 24 HPC. HINTS FOR EACH PUZZLE. SOLUTIONS FOR EACH PUZZLE. FEATURES 4 PUZZLES, ASSORTED MIX, MOSTLY THEMED ON 4 HPC. HINTS FOR EACH PUZZLE. SOLUTIONS FOR EACH PUZZLE. Nanro 80 Points Turning Fences 95 Points Toroidal Skyscrapers 85 Points (50 + 5) Tents 0 Points

More information

1, 2,, 10. Example game. Pieces and Board: This game is played on a 1 by 10 board. The initial position is an empty board.

1, 2,, 10. Example game. Pieces and Board: This game is played on a 1 by 10 board. The initial position is an empty board. ,,, 0 Pieces and Board: This game is played on a by 0 board. The initial position is an empty board. To Move: Players alternate placing either one or two pieces on the leftmost open squares. In this game,

More information

Movement of the pieces

Movement of the pieces Movement of the pieces Rook The rook moves in a straight line, horizontally or vertically. The rook may not jump over other pieces, that is: all squares between the square where the rook starts its move

More information

The 8-queens problem

The 8-queens problem The 8-queens problem CS 5010 Program Design Paradigms Bootcamp Lesson 8.7 Mitchell Wand, 2012-2015 This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. 1

More information

GENERALIZATION: RANK ORDER FILTERS

GENERALIZATION: RANK ORDER FILTERS GENERALIZATION: RANK ORDER FILTERS Definition For simplicity and implementation efficiency, we consider only brick (rectangular: wf x hf) filters. A brick rank order filter evaluates, for every pixel in

More information

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA Graphs of Tilings Patrick Callahan, University of California Office of the President, Oakland, CA Phyllis Chinn, Department of Mathematics Humboldt State University, Arcata, CA Silvia Heubach, Department

More information

Conway s Soldiers. Jasper Taylor

Conway s Soldiers. Jasper Taylor Conway s Soldiers Jasper Taylor And the maths problem that I did was called Conway s Soldiers. And in Conway s Soldiers you have a chessboard that continues infinitely in all directions and every square

More information

POST TEST KEY. Math in a Cultural Context*

POST TEST KEY. Math in a Cultural Context* POST TEST KEY Designing Patterns: Exploring Shapes and Area (Rhombus Module) Grade Level 3-5 Math in a Cultural Context* UNIVERSITY OF ALASKA FAIRBANKS Student Name: POST TEST KEY Grade: Teacher: School:

More information

ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat

ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat Overview The goal of this assignment is to find solutions for the 8-queen puzzle/problem. The goal is to place on a 8x8 chess board

More information

Digital Photography 1

Digital Photography 1 Digital Photography 1 Photoshop Lesson 3 Resizing and transforming images Name Date Create a new image 1. Choose File > New. 2. In the New dialog box, type a name for the image. 3. Choose document size

More information

YourTurnMyTurn.com: chess rules. Jan Willem Schoonhoven Copyright 2018 YourTurnMyTurn.com

YourTurnMyTurn.com: chess rules. Jan Willem Schoonhoven Copyright 2018 YourTurnMyTurn.com YourTurnMyTurn.com: chess rules Jan Willem Schoonhoven Copyright 2018 YourTurnMyTurn.com Inhoud Chess rules...1 The object of chess...1 The board...1 Moves...1 Captures...1 Movement of the different pieces...2

More information

Tapa Variations Contest

Tapa Variations Contest Tapa Variations Contest Feb 011 week TAPA RULE: Paint some cells black to create a continuous wall. Number/s in a cell indicate the length of black cell blocks on its neighbouring cells. If there is more

More information

Concept: Pythagorean Theorem Name:

Concept: Pythagorean Theorem Name: Concept: Pythagorean Theorem Name: Interesting Fact: The Pythagorean Theorem was one of the earliest theorems known to ancient civilizations. This famous theorem is named for the Greek mathematician and

More information

Problem of the Month. Miles of Tiles. 5 in. Problem of the Month Miles of Tiles Page 1

Problem of the Month. Miles of Tiles. 5 in. Problem of the Month Miles of Tiles Page 1 Problem of the Month Miles of Tiles Level A: You have a picture frame. You would like to decorate the frame by gluing tiles on it. The frame is a square shape. 14 in The frame is 1 inch wide all around.

More information

Build the clerestory of Chartres Cathedral

Build the clerestory of Chartres Cathedral Build the clerestory of Chartres Cathedral Overview: Step 1. Create a new Design Layer Step 2. Build the wall Step 3. Build the lancets Step 4. Build the rose window Step 5. Build the rose window quatrefoils

More information

WPF PUZZLE GP 2018 ROUND 3 COMPETITION BOOKLET. Host Country: India + = 2 = = 18 = = = = = =

WPF PUZZLE GP 2018 ROUND 3 COMPETITION BOOKLET. Host Country: India + = 2 = = 18 = = = = = = Host Country: India WPF PUZZLE GP 0 COMPETITION BOOKLET ROUND Swaroop Guggilam, Ashish Kumar, Rajesh Kumar, Rakesh Rai, Prasanna Seshadri Special Notes: The round is presented with similar-style puzzles

More information

Cross Sections of Three-Dimensional Figures

Cross Sections of Three-Dimensional Figures Domain 4 Lesson 22 Cross Sections of Three-Dimensional Figures Common Core Standard: 7.G.3 Getting the Idea A three-dimensional figure (also called a solid figure) has length, width, and height. It is

More information

Swaroop Guggilam, Ashish Kumar, Rajesh Kumar, Rakesh Rai, Prasanna Seshadri

Swaroop Guggilam, Ashish Kumar, Rajesh Kumar, Rakesh Rai, Prasanna Seshadri ROUND WPF PUZZLE GP 0 INSTRUCTION BOOKLET Host Country: India Swaroop Guggilam, Ashish Kumar, Rajesh Kumar, Rakesh Rai, Prasanna Seshadri Special Notes: The round is presented with similar-style puzzles

More information

Name. Part 2. Part 2 Swimming 55 minutes

Name. Part 2. Part 2 Swimming 55 minutes Name Swimming 55 minutes 1. Moby Dick...................... 15. Islands (Nurikabe).................. 0. Hashiwokakero (Bridges).............. 15 4. Coral Finder..................... 5 5. Sea Serpent......................

More information

Name: Date Completed: Basic Inventor Skills I

Name: Date Completed: Basic Inventor Skills I Name: Date Completed: Basic Inventor Skills I 1. Sketch, dimension and extrude a basic shape i. Select New tab from toolbar. ii. Select Standard.ipt from dialogue box by double clicking on the icon. iii.

More information

When you complete this assignment you will:

When you complete this assignment you will: Objjectiives When you complete this assignment you will: 1. sketch and dimension circles and arcs. 2. cut holes in the model using the cut feature of the extrusion command. 3. create Arcs using the trim

More information

Concept: Pythagorean Theorem Name:

Concept: Pythagorean Theorem Name: Concept: Pythagorean Theorem Name: Interesting Fact: The Pythagorean Theorem was one of the earliest theorems known to ancient civilizations. This famous theorem is named for the Greek mathematician and

More information

Command and State Patterns. Curt Clifton Rose-Hulman Institute of Technology

Command and State Patterns. Curt Clifton Rose-Hulman Institute of Technology Command and Patterns Curt Clifton Rose-Hulman Institute of Technology Final Exam Email me by Tuesday, Feb. 16, to sign up. Monday, Feb. 22, 8am Optional If you don t take the exam, we ll use your exam

More information

SolidWorks Part I - Basic Tools SDC. Includes. Parts, Assemblies and Drawings. Paul Tran CSWE, CSWI

SolidWorks Part I - Basic Tools SDC. Includes. Parts, Assemblies and Drawings. Paul Tran CSWE, CSWI SolidWorks 2015 Part I - Basic Tools Includes CSWA Preparation Material Parts, Assemblies and Drawings Paul Tran CSWE, CSWI SDC PUBLICATIONS Better Textbooks. Lower Prices. www.sdcpublications.com Powered

More information

Lecture 11: 1% Pure Luck

Lecture 11: 1% Pure Luck Lecture 11: 1% Pure Luck Make-up lab hours: :0-6 today CS150: Computer Science University of Virginia Computer Science David Evans http://www.cs.virginia.edu/evans Data Abstractions Solving the How to

More information

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game.

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game. CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25 Homework #1 ( Due: Oct 10 ) Figure 1: The laser game. Task 1. [ 60 Points ] Laser Game Consider the following game played on an n n board,

More information

CS 51 Homework Laboratory # 7

CS 51 Homework Laboratory # 7 CS 51 Homework Laboratory # 7 Recursion Practice Due: by 11 p.m. on Monday evening, but hopefully will be turned in by the end of the lab period. Objective: To gain experience using recursion. Recursive

More information

Pay attention to how flipping of pieces is determined with each move.

Pay attention to how flipping of pieces is determined with each move. CSCE 625 Programing Assignment #5 due: Friday, Mar 13 (by start of class) Minimax Search for Othello The goal of this assignment is to implement a program for playing Othello using Minimax search. Othello,

More information

SHRIMATI INDIRA GANDHI COLLEGE

SHRIMATI INDIRA GANDHI COLLEGE SHRIMATI INDIRA GANDHI COLLEGE (Nationally Re-accredited at A Grade by NAAC) Trichy - 2. COMPILED AND EDITED BY : J.SARTHAJ BANU DEPARTMENT OF MATHEMATICS 1 LOGICAL REASONING 1.What number comes inside

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

Square Roots and the Pythagorean Theorem

Square Roots and the Pythagorean Theorem UNIT 1 Square Roots and the Pythagorean Theorem Just for Fun What Do You Notice? Follow the steps. An example is given. Example 1. Pick a 4-digit number with different digits. 3078 2. Find the greatest

More information

CS 445 HW#2 Solutions

CS 445 HW#2 Solutions 1. Text problem 3.1 CS 445 HW#2 Solutions (a) General form: problem figure,. For the condition shown in the Solving for K yields Then, (b) General form: the problem figure, as in (a) so For the condition

More information

WPF PUZZLE GP 2014 COMPETITION BOOKLET ROUND 1 WPF SUDOKU/PUZZLE GRAND PRIX 2014

WPF PUZZLE GP 2014 COMPETITION BOOKLET ROUND 1 WPF SUDOKU/PUZZLE GRAND PRIX 2014 WPF SUDOKU/PUZZLE GRAND PRX 04 WPF PUZZLE GP 04 COMPETTON BOOKLET Puzzle authors: Germany Rainer Biegler (6, ) Gabi Penn-Karras (5, 7, 9) Roland Voigt (, 3, 8) Ulrich Voigt (, 5, 0) Robert Vollmert (4,

More information

Case Study Playing Checkers

Case Study Playing Checkers APPENDIX A Case Study Playing Checkers In this appendix we will look at the logic in creating a checkers game. The intent is to demonstrate the logical need for an array to accomplish this mission. This

More information

Section 5: DIAGONALS

Section 5: DIAGONALS Section 5: DIAGONALS Diagonals is a turning-defined technique in which all tablets are threaded with the same arrangement of colours. On four-holed tablets it is called Egyptian diagonals. Plate 5-1 shows

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

Score. Please print legibly. School / Team Names. Directions: Answers must be left in one of the following forms: 1. Integer (example: 7)

Score. Please print legibly. School / Team Names. Directions: Answers must be left in one of the following forms: 1. Integer (example: 7) Score Please print legibly School / Team Names Directions: Answers must be left in one of the following forms: 1. Integer (example: 7)! 2. Reduced fraction (example:! )! 3. Mixed number, fraction part

More information

For 1 to 4 players Ages 12 to adult. Ternion Factor TM. Three games of strategy Solitaire puzzles. A product of Kadon Enterprises, Inc.

For 1 to 4 players Ages 12 to adult. Ternion Factor TM. Three games of strategy Solitaire puzzles. A product of Kadon Enterprises, Inc. For 1 to 4 players Ages 12 to adult Ternion Factor TM Three games of strategy Solitaire puzzles A product of Kadon Enterprises, Inc. The Ternion Factor, Ternion Spaces, and Escape! are trademarks of Arthur

More information

IN THIS ISSUE. WPC Placement. WPC Placement Puzzles of the th Belarusian Puzzle Championship. Puzzles of the

IN THIS ISSUE. WPC Placement. WPC Placement Puzzles of the th Belarusian Puzzle Championship. Puzzles of the 6 IN THIS ISSUE 1. 2-8. WPC Placement Puzzles of the 7th Belarusian Puzzle Championship 9-14. Puzzles of the 10th Russian Puzzle Championship WPC Placement Author - Andrey Bogdanov Place all the given

More information

SECTION ONE - (3 points problems)

SECTION ONE - (3 points problems) International Kangaroo Mathematics Contest 0 Benjamin Level Benjamin (Class 5 & 6) Time Allowed : hours SECTION ONE - ( points problems). Basil wants to paint the slogan VIVAT KANGAROO on a wall. He wants

More information

Outline. Nested Loops. Nested loops. Nested loops. Nested loops TOPIC 7 MODIFYING PIXELS IN A MATRIX NESTED FOR LOOPS

Outline. Nested Loops. Nested loops. Nested loops. Nested loops TOPIC 7 MODIFYING PIXELS IN A MATRIX NESTED FOR LOOPS TOPIC 7 MODIFYING PIXELS IN A MATRIX NESTED FOR LOOPS 1 2 2 Outline Using nested loops to process data in a matrix (2- dimensional array) More advanced ways of manipulating pictures in Java programs Notes

More information

Similarity and Ratios

Similarity and Ratios " Similarity and Ratios You can enhance a report or story by adding photographs, drawings, or diagrams. Once you place a graphic in an electronic document, you can enlarge, reduce, or move it. In most

More information

Getting Started. Right click on Lateral Workplane. Left Click on New Sketch

Getting Started. Right click on Lateral Workplane. Left Click on New Sketch Getting Started 1. Open up PTC Pro/Desktop by either double clicking the icon or through the Start button and in Programs. 2. Once Pro/Desktop is open select File > New > Design 3. Close the Pallet window

More information

a b c d e f g h i j k l m n

a b c d e f g h i j k l m n Shoebox, page 1 In his book Chess Variants & Games, A. V. Murali suggests playing chess on the exterior surface of a cube. This playing surface has intriguing properties: We can think of it as three interlocked

More information

1st UKPA Sudoku Championship

1st UKPA Sudoku Championship st UKPA Sudoku Championship COMPETITION PUZZLES Saturday 6th Sunday 7th November 00 Championship Duration: hours. Puzzles designed by Tom Collyer # - Classic Sudoku ( 4) 0pts #8 - No Touch Sudoku 5pts

More information

IN THIS ISSUE. Cave vs. Pentagroups

IN THIS ISSUE. Cave vs. Pentagroups 3 IN THIS ISSUE 1. 2. 3. 4. 5. 6. Cave vs. Pentagroups Brokeback loop Easy as skyscrapers Breaking the loop L-oop Triple loop Octave Total rising Dead end cells Pentamino in half Giant tents Cave vs. Pentagroups

More information

Building Concepts: Fractions and Unit Squares

Building Concepts: Fractions and Unit Squares Lesson Overview This TI-Nspire lesson, essentially a dynamic geoboard, is intended to extend the concept of fraction to unit squares, where the unit fraction b is a portion of the area of a unit square.

More information

Logic Masters Instructions, First round

Logic Masters Instructions, First round Organised member of by Logic Masters 2018 Instructions, First round Welcome to the first round of the Logic Masters 2018. The contest begins on Friday, March 2 2018 at 12:00 CET and ends on Monday, March

More information

Y1160A EIA Rack Sliding Shelf Installation Note

Y1160A EIA Rack Sliding Shelf Installation Note Y1160A EIA Rack Sliding Shelf Installation Note This installation note contains procedures for mounting L4400 Series LXI instruments in EIA rack cabinets using the Y1160A sliding shelf rack mount kit.

More information

Week 1 Assignment Word Search

Week 1 Assignment Word Search Week 1 Assignment Word Search Overview For this assignment, you will program functionality relevant to a word search puzzle game, the game that presents the challenge of discovering specific words in a

More information

Once you get a solution draw it below, showing which three pennies you moved and where you moved them to. My Solution:

Once you get a solution draw it below, showing which three pennies you moved and where you moved them to. My Solution: Arrange 10 pennies on your desk as shown in the diagram below. The challenge in this puzzle is to change the direction of that the triangle is pointing by moving only three pennies. Once you get a solution

More information

Tutorial 4: Overhead sign with lane control arrows:

Tutorial 4: Overhead sign with lane control arrows: Tutorial 4: Overhead sign with lane control arrows: SignCAD Analysis The sign above splits multilane freeway traffic into two routes/destinations. It uses the overhead lane control arrows. The top half

More information

Preview Puzzle Instructions U.S. Sudoku Team Qualifying Test September 6, 2015

Preview Puzzle Instructions U.S. Sudoku Team Qualifying Test September 6, 2015 Preview Puzzle Instructions U.S. Sudoku Team Qualifying Test September 6, 2015 The US Qualifying test will start on Sunday September 6, at 1pm EDT (10am PDT) and last for 2 ½ hours. Here are the instructions

More information

Mathematics Enhancement Programme TEACHING SUPPORT: Year 3

Mathematics Enhancement Programme TEACHING SUPPORT: Year 3 Mathematics Enhancement Programme TEACHING UPPORT: Year 3 1. Question and olution Write the operations without brackets if possible so that the result is the same. Do the calculations as a check. The first

More information

Same Area, Different Perimeter; Same Perimeter, Different Area

Same Area, Different Perimeter; Same Perimeter, Different Area S E S S I O N 2. 5 A Same Area, Different Perimeter; Same Perimeter, Different Area Math Focus Points Using tiles to find the area and perimeter of a rectangle Understanding that rectangles can have the

More information

122 Taking Shape: Activities to Develop Geometric and Spatial Thinking, Grades K 2 P

122 Taking Shape: Activities to Develop Geometric and Spatial Thinking, Grades K 2 P Game Rules The object of the game is to work together to completely cover each of the 6 hexagons with pattern blocks, according to the cards chosen. The game ends when all 6 hexagons are completely covered.

More information

Arranging and Patterning Objects

Arranging and Patterning Objects C H A P T E R Arranging and Patterning Objects Learning Objectives After completing this chapter, you will be able to do the following: Relocate objects using the MOVE tool. Change the angular positions

More information

Situations Involving Multiplication and Division with Products to 50

Situations Involving Multiplication and Division with Products to 50 Mathematical Ideas Composing, decomposing, addition, and subtraction of numbers are foundations of multiplication and division. The following are examples of situations that involve multiplication and/or

More information

Brain-on! A Trio of Puzzles

Brain-on! A Trio of Puzzles Hands Hands-on = Brain-on! A Trio of Puzzles "I hear and I forget, I see and I remember, I do and I understand." - Chinese proverb Manipulatives and hands-on activities can be the key to creating concrete

More information

DELUXE 3 IN 1 GAME SET

DELUXE 3 IN 1 GAME SET Chess, Checkers and Backgammon August 2012 UPC Code 7-19265-51276-9 HOW TO PLAY CHESS Chess Includes: 16 Dark Chess Pieces 16 Light Chess Pieces Board Start Up Chess is a game played by two players. One

More information

Tac Due: Sep. 26, 2012

Tac Due: Sep. 26, 2012 CS 195N 2D Game Engines Andy van Dam Tac Due: Sep. 26, 2012 Introduction This assignment involves a much more complex game than Tic-Tac-Toe, and in order to create it you ll need to add several features

More information

Second Quarter Benchmark Expectations for Sections 4 and 5. Count orally by ones to 50. Count forward to 50 starting from numbers other than 1.

Second Quarter Benchmark Expectations for Sections 4 and 5. Count orally by ones to 50. Count forward to 50 starting from numbers other than 1. Mastery Expectations For the Kindergarten Curriculum In Kindergarten, Everyday Mathematics focuses on procedures, concepts, and s in two critical areas: Representing and comparing whole numbers, initially

More information

A Peg Solitaire Font

A Peg Solitaire Font Bridges 2017 Conference Proceedings A Peg Solitaire Font Taishi Oikawa National Institute of Technology, Ichonoseki College Takanashi, Hagisho, Ichinoseki-shi 021-8511, Japan. a16606@g.ichinoseki.ac.jp

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

KenKen Strategies 17+

KenKen Strategies 17+ KenKen is a puzzle whose solution requires a combination of logic and simple arithmetic and combinatorial skills. The puzzles range in difficulty from very simple to incredibly difficult. Students who

More information

Situations Involving Multiplication and Division with Products to 100

Situations Involving Multiplication and Division with Products to 100 Mathematical Ideas Composing, decomposing, addition, and subtraction of numbers are foundations of multiplication and division. The following are examples of situations that involve multiplication and/or

More information

GATEWAY GIFTED RESOURCES TM

GATEWAY GIFTED RESOURCES TM GATEWAY GIFTED RESOURCES TM COMPLIMENTARY E-BOOK Alex GIFTED TEST May PREP Sophie Anya Freddie Max ABOUT THESE EXERCISES - These exercises help children, preschool to age 6, prepare for standardized tests

More information

Figure 1: A Checker-Stacks Position

Figure 1: A Checker-Stacks Position 1 1 CHECKER-STACKS This game is played with several stacks of black and red checkers. You can choose any initial configuration you like. See Figure 1 for example (red checkers are drawn as white). Figure

More information

g. Click once on the left vertical line of the rectangle.

g. Click once on the left vertical line of the rectangle. This drawing will require you to a model of a truck as a Solidworks Part. Please be sure to read the directions carefully before constructing the truck in Solidworks. Before submitting you will be required

More information

ISudoku. Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand

ISudoku. Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand ISudoku Abstract In this paper, we will analyze and discuss the Sudoku puzzle and implement different algorithms to solve the puzzle. After

More information

Advanced Technology and Manufacturing Institute. Zygo ZeScope

Advanced Technology and Manufacturing Institute. Zygo ZeScope Advanced Technology and Manufacturing Institute Zygo ZeScope Created by Andrew Miller ATAMI Oregon State University Revision Date Description Curator 0 8/31/2018 New Document Andrew Miller Zygo ZeScope

More information

Easy Games and Hard Games

Easy Games and Hard Games Easy Games and Hard Games Igor Minevich April 30, 2014 Outline 1 Lights Out Puzzle 2 NP Completeness 3 Sokoban 4 Timeline 5 Mancala Original Lights Out Puzzle There is an m n grid of lamps that can be

More information

Whole Numbers. Predecessor and successor Given any natural number, you can add 1 to that number and get the next number i.e. you

Whole Numbers. Predecessor and successor Given any natural number, you can add 1 to that number and get the next number i.e. you Whole Numbers Chapter.1 Introduction As we know, we use 1,, 3, 4,... when we begin to count. They come naturally when we start counting. Hence, mathematicians call the counting numbers as Natural numbers.

More information

The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant]

The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant] Pattern Tours The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant] A sequence of cell locations is called a path. A path

More information

CMSC 206: Data Structures Harry Potter and the Practice Final Exam AND THE CS EXAM

CMSC 206: Data Structures Harry Potter and the Practice Final Exam AND THE CS EXAM CMSC 206: Data Structures Harry Potter and the Practice Final Exam AND THE CS EXAM Many, far and wide, have read about the adventures of Harry, Ron, and Hermione. What you have read is a fabrication a

More information

Integer Programming Based Algorithms for Peg Solitaire Problems

Integer Programming Based Algorithms for Peg Solitaire Problems } \mathrm{m}\mathrm{i}\mathrm{s}\mathrm{o}\mathrm{j}\mathrm{i}\mathrm{r}\mathrm{o}\mathrm{t}\mathfrak{u}-\mathrm{t}\mathrm{o}\mathrm{k}\mathrm{y}\mathrm{o}\mathrm{a}\mathrm{c}\mathrm{j}\mathrm{p}$ we forward-only

More information

Sudoku goes Classic. Gaming equipment and the common DOMINARI - rule. for 2 players from the age of 8 up

Sudoku goes Classic. Gaming equipment and the common DOMINARI - rule. for 2 players from the age of 8 up Sudoku goes Classic for 2 players from the age of 8 up Gaming equipment and the common DOMINARI - rule Board Sudoku goes classic is played on a square board of 6x6 fields. 4 connected fields of the same

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

2.NBT.1 20) , 200, 300, 400, 500, 600, 700, 800, NBT.2

2.NBT.1 20) , 200, 300, 400, 500, 600, 700, 800, NBT.2 Saxon Math 2 Class Description: Saxon mathematics is based on the principle of developing math skills incrementally and reviewing past skills daily. It also incorporates regular and cumulative assessments.

More information

Figure 1: The Game of Fifteen

Figure 1: The Game of Fifteen 1 FIFTEEN One player has five pennies, the other five dimes. Players alternately cover a number from 1 to 9. You win by covering three numbers somewhere whose sum is 15 (see Figure 1). 1 2 3 4 5 7 8 9

More information

Constraint Satisfaction Problems: Formulation

Constraint Satisfaction Problems: Formulation Constraint Satisfaction Problems: Formulation Slides adapted from: 6.0 Tomas Lozano Perez and AIMA Stuart Russell & Peter Norvig Brian C. Williams 6.0- September 9 th, 00 Reading Assignments: Much of the

More information

MEASUREMENT CAMERA USER GUIDE

MEASUREMENT CAMERA USER GUIDE How to use your Aven camera s imaging and measurement tools Part 1 of this guide identifies software icons for on-screen functions, camera settings and measurement tools. Part 2 provides step-by-step operating

More information

4 th Grade Mathematics Learning Targets By Unit

4 th Grade Mathematics Learning Targets By Unit INSTRUCTIONAL UNIT UNIT 1: WORKING WITH WHOLE NUMBERS UNIT 2: ESTIMATION AND NUMBER THEORY PSSA ELIGIBLE CONTENT M04.A-T.1.1.1 Demonstrate an understanding that in a multi-digit whole number (through 1,000,000),

More information

Converting your patterns into a digital PDF By: BurdaStyle

Converting your patterns into a digital PDF By: BurdaStyle Converting your patterns into a digital PDF By: BurdaStyle http://www.burdastyle.com/techniques/converting-your-patterns-into-a-digital-pdf Here is a great way for you to be able to share your patterns

More information

Take Control of Sudoku

Take Control of Sudoku Take Control of Sudoku Simon Sunatori, P.Eng./ing., M.Eng. (Engineering Physics), F.N.A., SM IEEE, LM WFS MagneScribe : A 3-in-1 Auto-Retractable Pen

More information