Selected Game Examples

Similar documents
Underleague Game Rules

game tree complete all possible moves

PLAYERS AGES MINS.

Dragon Canyon. Solo / 2-player Variant with AI Revision

Subtraction Step Down

Presentation by Toy Designers: Max Ashley

Of Dungeons Deep! Table of Contents. (1) Components (2) Setup (3) Goal. (4) Game Play (5) The Dungeon (6) Ending & Scoring


STATION 1: ROULETTE. Name of Guesser Tally of Wins Tally of Losses # of Wins #1 #2

Contents: Resources. Card Icons. Animals. Villagers. 100 Animal Tokens 107 Cards: 42 Villager Cards 47 Castle Cards 18 Market Cards.

Determine the Expected value for each die: Red, Blue and Green. Based on your calculations from Question 1, do you think the game is fair?

CUBES. 12 Pistols E F D B

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

game design - shem phillips illustration - mihajlo dimitrievski graphic design & layouts - shem phillips copyright 2015 garphill games

Milton Public Schools Elementary Summer Math

Castles of Burgundy Rules Summary. Game board: Player board: TERMS

7 = Part-Part-Whole. Games = 6 + 1

Details of Play Each player counts out a number of his/her armies for initial deployment, according to the number of players in the game.

KUNG CHI. By Stone Mage Games RULES. Sample file

Only and are worth points. The point value of and is printed at the bottom of the card.

Bouncy Dice Explosion

Numan Sheikh FC College Lahore

Programming Exam. 10% of course grade

Runikend 1st edition Schneider Lab Ltd E. Hampden Ave Unit C-113 Denver CO,

3. If you can t make the sum with your cards, you must draw one card. 4. Players take turns rolling and discarding cards.

Equipment for the basic dice game

Bouncy Dice Explosion

The game consists of 3 rounds where you will build a castle in 30 seconds then place catapults and steal wall pieces from your neighbors.

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

More Adversarial Search

Background. Game Theory and Nim. The Game of Nim. Game is Finite 1/27/2011

Rulebook min

Roll & Make. Represent It a Different Way. Show Your Number as a Number Bond. Show Your Number on a Number Line. Show Your Number as a Strip Diagram

Programming an Othello AI Michael An (man4), Evan Liang (liange)

Games for Drill and Practice

Casino Lab AP Statistics

BALTIMORE COUNTY PUBLIC SCHOOLS. Rock n Roll

INTRODUCTION GAME IDEA COMPONENTS. 2-5 players aged 10 and up playing time: minutes

MATERIALS. match SETUP. Hero Attack Hero Life Vanguard Power Flank Power Rear Power Order Power Leader Power Leader Attack Leader Life

Round Away. ten. Number created: 5,678 Round to the nearest ten

Introduction. Game Overview. Component List. Component Overview. Ingenious Cards

* Rules are not final and subject to change *

Easy Games and Hard Games

COMPONENTS GAME SETUP GAME SEQUENCE

CONTENTS TABLE OF BOX CONTENT SECTION SECTION SECTION SECTION SECTION SECTION SECTION

Cross Out Singles. 3. Players then find the sums of the rows, columns, and diagonal, and record them in the respective circles.

SIC BO ON THE MULTI TERMINALS

Lab Exercise #10. Assignment Overview

OCTAGON 5 IN 1 GAME SET

Checkpoint Questions Due Monday, October 7 at 2:15 PM Remaining Questions Due Friday, October 11 at 2:15 PM

CPM Educational Program

2. The Extensive Form of a Game

LEARNING ABOUT MATH FOR K TO 5. Dorset Public School. April 6, :30 pm 8:00 pm. presented by Kathy Kubota-Zarivnij

Artificial Intelligence. Minimax and alpha-beta pruning

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

The Birds of a Feather Research Challenge. Todd W. Neller Gettysburg College November 9 th, 2017

Game Playing Part 1 Minimax Search

Game Playing for a Variant of Mancala Board Game (Pallanguzhi)

Phase 10 Masters Edition Copyright 2000 Kenneth R. Johnson For 2 to 4 Players

GAMBLING ( ) Name: Partners: everyone else in the class

Make better decisions. Learn the rules of the game before you play.

Analyzing Games: Solutions

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

CS 787: Advanced Algorithms Homework 1

The Game of Hog. Scott Lee

Example: I predict odd, roll a 5, and then collect that many counters. Play until time is up. The player with the most counters wins.

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

BLACKJACK Perhaps the most popular casino table game is Blackjack.

One Zero One. The binary card game. Players: 2 Ages: 8+ Play Time: 10 minutes

Game Overview 2 Setting 3 Story 3 Main Objective 3. Game Components 3. Rules 4 Game Setup 4 Turn Sequence 5 General Rules 9 End Game Conditions 9

For this assignment, your job is to create a program that plays (a simplified version of) blackjack. Name your program blackjack.py.

REQUIRED EQUIPMENT. PLAYING TIME: approximately 20 minutes. NUMBER OF PLAYERS: 1 or 2

8.2 Union, Intersection, and Complement of Events; Odds

TABLE OF CONTENTS. The Box Cars and One-Eyed Jacks Philosophy How to Use This Book adding integers adding integers...

Simple Poker Game Design, Simulation, and Probability

Materials: Game board, dice (preferable one 10 sided die), 2 sets of colored game board markers.

Physical Zero-Knowledge Proof: From Sudoku to Nonogram

SudokuSplashZone. Overview 3

Object of the game. Contents. Setup. Master of the u World Point Value Reminder of the card s v effect. wstrategic Zone.

CHECKMATE! A Brief Introduction to Game Theory. Dan Garcia UC Berkeley. The World. Kasparov

Combined Games. Block, Alexander Huang, Boao. icamp Summer Research Program University of California, Irvine Irvine, CA

MONUMENTAL RULES. COMPONENTS Cards AIM OF THE GAME SETUP Funforge. Matthew Dunstan. 1 4 players l min l Ages 14+ Tokens

2 Players Grand Slam. Teams. Credits. During the setup, each player chooses two Titans.

Junior Circle Meeting 5 Probability. May 2, ii. In an actual experiment, can one get a different number of heads when flipping a coin 100 times?

CS 491 CAP Intro to Combinatorial Games. Jingbo Shang University of Illinois at Urbana-Champaign Nov 4, 2016

The Game Kit. American Printing House for the Blind, Inc. Eleanor Pester Project Director. Debbie Willis Assistant Project Director

Building Successful Problem Solvers

Lecture 33: How can computation Win games against you? Chess: Mechanical Turk

Game Playing AI Class 8 Ch , 5.4.1, 5.5

Lenarz Math 102 Practice Exam # 3 Name: 1. A 10-sided die is rolled 100 times with the following results:

Adversary Search. Ref: Chapter 5

Game Playing. Why do AI researchers study game playing? 1. It s a good reasoning problem, formal and nontrivial.

PROBLEM SET 2 Due: Friday, September 28. Reading: CLRS Chapter 5 & Appendix C; CLR Sections 6.1, 6.2, 6.3, & 6.6;

Aviation Tycoon By Ted Cheatham. A game for 2-5 players

Unit 12: Artificial Intelligence CS 101, Fall 2018

Introduction to Auction Theory: Or How it Sometimes

5.4 Imperfect, Real-Time Decisions

2015 BRITTNEY FIELD, GAINS.COM

ADVERSARIAL SEARCH. Chapter 5

CS Project 1 Fall 2017

Transcription:

Games in the Classroom ~Examples~ Genevieve Orr Willamette University Salem, Oregon gorr@willamette.edu Sciences in Colleges Northwestern Region Selected Game Examples Craps - dice War - cards Mancala - board Reversi - board Sudoku - board Mazes - board Good for cs1, cs2, or algorithms. Can be played at one computer. Can use simple text interface (GUI extra credit) 1

Craps Dice Based on chance. 1 player Data Structures: Encapsulation (Die class) Algorithms: random numbers (dice roll), conditionals Play game War Cards 2 players Data Structures: Encapsulation (Cards and Deck), Lists,Queues, Stacks Algorithms: control structure, random numbers (shuffling cards) play game 2

Mancala, Reversi, Sudoku, Mazes Game Characteristics: Abstract Board No Hidden Information Deterministic 1 or 2 Players 1D or 2D or 3D Arrays Mancala 2 Players Data Structures: 1D array (List ADT) Algorithms: while loops, logic for rules, mod function, AI (if play against computer) play game 3

Mancala Rules Players: 2 Object: To have the most pebbles in your mancala (goal) at the end of game. Board: The Mancala board consists of 14 pits, each holding a number of pebbles. Initially, it looks like: Mancala Rules(cont) Play: On your turn, pick up all of the pebbles in any non-empty pit on your side of the board. Proceeding counterclockwise, sow one pebble in each pit until you run out. When sowing, include your own mancala, but not your opponent s. Free move: If the last pebble you sow lands in your own Mancala, you get another move. Capture: If the last pebble you sow lands in a previously empty pit on your side of the board, you move that pebble, as well as any pebbles in the pit directly across the board, into your mancala. End game: The game ends when, after either player s move, one player has no pebbles left in any of the six pits on her side of the board. The other player moves all of the pebbles left on his side of the board to his mancala. 4

Reversi 2 Players Data Structures: 2D arrays Algorithms: logic for rules, challenging looping, operator overloading, AI (if play against computer) play game Sudoku 1 Player Data Structures: 2D array Algorithms: recursion or logic rules, interesting looping play game: recurse recurse-animate rules 5

All About Sudoku Rules http://en.wikipedia.org/wiki/sudoku http://www.sciencenews.org/articles/20050618/mathtrek.asp Solving http://www.sudoku.org.uk/pdf/solving_sudoku.pdf http://www.conceptispuzzles.com/products/sudoku/solution_examples.htm Maze Creation Data Structures: 2D array (or 3D) Algorithms: recursion, trees, graphs, union-find Starting point for game creation. create maze: Tree recurse Union-find 6

All about Mazes Games: http://www.mazepuzzle.com/puzzleindex.htm http://www.clickmazes.com/index.htm Crossword puzzles http://mrl.nyu.edu/~perlin/homepage2006/crossword/index.html Maze Classification http://www.magitech.com/%7ecruiser1/labyrnth/algrithm.htm 3D Maze Example http://mrl.nyu.edu/~perlin/experiments/borg/ Maze Art http://www.dgp.toronto.edu/~karan/maze/ Conclusion Games provide a fun context for learning computer science concepts. Games vary in complexity and in the type of algorithms and data structures that are required. For every algorithm or data structure, there is some game that uses it. 7

Craps Rules Players: 1 Play: Declare how much money you wish to bet, then roll two dice. If the sum is 7 or 11, you win the amount of the bet. If the sum is 2, 3, or 12, you lose this amount. Otherwise, the sum is your point. Roll until either you roll your point again (and win) or you roll a 7 (and lose). War Rules Players: 2 Object: To force other player to run out of cards. Setup: deal out the entire deck, 26 cards to each player. Cards are kept in a face down pile. Play: In each round, each player turns up top card on his pile. The player with the higher ranking card takes both cards and adds them to the bottom of his pile. A tie is resolved by war : each player plays three cards from his pile face-down and then another face-up. The high card among these last two wins all ten cards. Subsequent ties are handled similarly. 8

Reversi Rules Players: 2, black and white Object: To have the most pieces of your color on the board at the end of the game. Board: 8x8 square grid. Initially, has in center: Play: On a turn, a player places one of her pieces on an empty board square. Every line (hor, vert, diag) of the opponent s pieces which is bounded on one end by the just-played piece and on the other end by another friendly piece is captured; all the captured pieces change color. A player must capture if possible. If no capturing move is available, the player must pass. End game: The game is over when neither player has a legal move. Sudoku Rules Players: 1 Play: Fill in all of the squares on the board with the numbers 1 to 9 so that no number is repeated Across any row. Down any column. Within any given 3x3 square identified by the bold outline. 9