Final Project (Choose 1 of the following) Max Score: A

Size: px
Start display at page:

Download "Final Project (Choose 1 of the following) Max Score: A"

Transcription

1 Final Project (Choose 1 of the following) Max Score: A #1 - The Game of Nim The game of Nim starts with a random number of stones between 15 and 30. Two players alternate turns and on each turn may take either 1,2, or 3 stones from the pile. The player forced to take the last stone loses. Create a Nim application that allows the user to play against the computer. In this version of the game, the application generates the number of stones to begin with, the number of stones the computer takes, and the user to go first. The application interface should look similar to: Include code that prevents the user and the computer from taking an illegal number of stones. For example, neither should be allowed to take three stones when there are only 1 or 2 left. Your program should use: ValidEntry function to check the number entered by the user or computer to make sure that it is a valid # and that there are enough stones left to take. (ask for help with this if you do not understand) RandomNum function like the one we made in class to generate a random number of stones and the number that the computer guesses Separate procedures for the user s turn and the computer s turn.

2 #2 Mastermind Max Score: A The game of mastermind is played as follows: one player (the code-maker) chooses a secret arrangement of colored pegs and the other player (the code-breaker) tries to guess it. After each guess, the code-maker reports two numbers: 1. The number of pegs that are the correct color in the correct position. 2. The number of pegs that are the correct color regardless of whether they are in the correct position Create a Mastermind application where the computer is the code-maker and the player is the code-breaker. For simplicity, do not allow the secret arrangement of colored pegs to have duplicate colors. The application interface should look similar to: Your program should Use a ChooseColors procedure the has intpeg1color, intpeg2color, and intpeg3color parameters to generate unique colors for the secret arrangement of colored pegs. Use numbers 1 through 5 to represent colors and use RandomNum Function to generate the random numbers. Call the ChooseColors procedure from Form_Load Use a procedure called CheckColors to check for the number of correct colors Use a procedure called CorrectPegs to check to see how many pegs are in the same position

3 #3 Tic Tac Toe Max Score:A- We all know the rules of Tic-Tac-Toe, so there is no need to go over them. This game of tic-tac-toe will involve two people, the user and the computer. The user will always go first and the computer will always go second. Create a tic-tac-toe game similar to the one below that will allow a person and computer to play the game and will decide who won and whether or not the game is a stalemate. The game needs to include a RandomNum Function that will decide which square the computer will choose. Have the computer choose a random number between 1 and 9 (have that correspond to a specific square). Your game also needs to include a PersonTurn Procedure, ComputerTurn procedure and a CheckGame procedure. The ComputerTurn procedure should decide where the computer is going to make its next move. The CheckGame procedure should check to see if someone has won the game. Your program also needs to include:

4 #4 Hi Lo Game Max Score: B- In the Hi-Lo Game, the player begins with a score of The player enters the number of points to risk and chooses High or Low. The player s choice of high or low is compared to a random number between 1 and 13, inclusive. If the number is between 1 and 6, it is considered Low. If it is between 8 and 13, it is considered High. The number 7 is neither high nor low, and player loses the points at risk. If the player guesses incorrectly, he or she loses the points at risk. If the player guesses correctly, he or she receives double the points at risk. Create a Hi-Low application that allows the user to enter the number points at risk and pick either High or Low and then display the result. The application interface should look similar to: Your program should include the following elements: RandomNum Function A RandomNum Function that you will use to generate a random number between 1 and 13: Private Function RandomNum(ByVal inthighnum As Integer, ByVal intlownum As Integer) as Integer StartGame Procedure A StartGame procedure that will simply set the number of points to 1000 when a new game starts. You should call this procedure in form load to start the program and whenever they press the Play Again button. Private Sub StartGame() Your program also needs to include:

5 #5 ACEY-DEUCEY MAX SCORE: A The game is played with a standard deck of 52 playing cards. With each turn, two cards are dealt from the deck and listed. The idea of the game is to see if the next card is between the two listed cards (if it is the same value as a listed card, it is considered to be between the values). Deuces (twos) are the lowest cards and aces are the highest cards. With each turn, your are shown your score (you start with 100 points) and you are shown how many cards are left in the deck. You are then asked to bet. On each turn, you may bet from 0 points to your score. Each turn of the game is the same. Once the cards are shown, you enter your bet and press the <Enter> key on your keyboard. The next card is then listed and checked to see if it is between the other listed cards. If it is, your bet is added to your score. If not, your bet is deducted from your score. The game ends when one of two things happens: there are not three cards left in the deck to deal or your score reaches zero. Your program should Use a DisplayCard procedure the has intcardnumber parameters to generate a card. Use numbers 1 through 52 to represent cards and use RandomNum Function to generate the random numbers. Call the DisplayCard procedure from Form_Load to deal the first two cards. Call this procedure later when you display the persons card Use a procedure called CheckCards to see if the person won or lost

Final Project (Choose 1 of the following) Max Score: A

Final Project (Choose 1 of the following) Max Score: A Final Project (Choose 1 of the following) Max Score: A #1 - The Game of Nim The game of Nim starts with a random number of stones between 15 and 30. Two players alternate turns and on each turn may take

More information

PHASE 10 CARD GAME Copyright 1982 by Kenneth R. Johnson

PHASE 10 CARD GAME Copyright 1982 by Kenneth R. Johnson PHASE 10 CARD GAME Copyright 1982 by Kenneth R. Johnson For Two to Six Players Object: To be the first player to complete all 10 Phases. In case of a tie, the player with the lowest score is the winner.

More information

BLACKJACK. Game Rules. Definitions Mode of Play How to Play Settlement Irregularities

BLACKJACK. Game Rules. Definitions Mode of Play How to Play Settlement Irregularities BLACKJACK Game Rules 1. Definitions 2. Mode of Play 3. 4. How to Play Settlement 5. Irregularities 21 1. Definitions 1.1. In these rules: 1.1.1. Blackjack means an Ace and any card having a point value

More information

Game, Set, and Match Carl W. Lee September 2016

Game, Set, and Match Carl W. Lee September 2016 Game, Set, and Match Carl W. Lee September 2016 Note: Some of the text below comes from Martin Gardner s articles in Scientific American and some from Mathematical Circles by Fomin, Genkin, and Itenberg.

More information

CATFISH BEND CASINOS, L.C. RULES OF THE GAME FORTUNE PAI GOW

CATFISH BEND CASINOS, L.C. RULES OF THE GAME FORTUNE PAI GOW CATFISH BEND CASINOS, L.C. RULES OF THE GAME FORTUNE PAI GOW TABLE OF CONTENTS Introduction FPG - 2 Pai Gow Poker Hand Rankings FPG - 3 Fortune Bonus Qualifying Hand FPG - 4 Fortune Bonus Payouts FPG -

More information

Jim and Nim. Japheth Wood New York Math Circle. August 6, 2011

Jim and Nim. Japheth Wood New York Math Circle. August 6, 2011 Jim and Nim Japheth Wood New York Math Circle August 6, 2011 Outline 1. Games Outline 1. Games 2. Nim Outline 1. Games 2. Nim 3. Strategies Outline 1. Games 2. Nim 3. Strategies 4. Jim Outline 1. Games

More information

Problem F. Chessboard Coloring

Problem F. Chessboard Coloring Problem F Chessboard Coloring You have a chessboard with N rows and N columns. You want to color each of the cells with exactly N colors (colors are numbered from 0 to N 1). A coloring is valid if and

More information

THREE CARD POKER. Game Rules. Definitions Mode of Play How to Play Settlement Irregularities

THREE CARD POKER. Game Rules. Definitions Mode of Play How to Play Settlement Irregularities THREE CARD POKER Game Rules 1. Definitions 2. Mode of Play 3. 4. How to Play Settlement 5. Irregularities 31 1. Definitions 1.1. The games are played with a standard 52 card deck. The cards are distributed

More information

FreeCell Puzzle Protocol Document

FreeCell Puzzle Protocol Document AI Puzzle Framework FreeCell Puzzle Protocol Document Brian Shaver April 11, 2005 FreeCell Puzzle Protocol Document Page 2 of 7 Table of Contents Table of Contents...2 Introduction...3 Puzzle Description...

More information

Programming Exam. 10% of course grade

Programming Exam. 10% of course grade 10% of course grade War Overview For this exam, you will create the card game war. This game is very simple, but we will create a slightly modified version of the game to hopefully make your life a little

More information

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

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11 V. Adamchik D. Sleator Great Theoretical Ideas In Computer Science Mathematical Games CS 5-25 Spring 2 Lecture Feb., 2 Carnegie Mellon University Plan Introduction to Impartial Combinatorial Games Related

More information

11/3/71 BASIC (VI) basic -- DEC supplied BASIC

11/3/71 BASIC (VI) basic -- DEC supplied BASIC 11/3/71 BASIC (VI) basic -- DEC supplied BASIC basic [file] Basic is the standard BASIC V000 distributed as a stand alone program. The optional file argument is read before the console. See DEC 11 AJPB

More information

NEVADA GOOD SAMS GAME RULES Revised September 2015

NEVADA GOOD SAMS GAME RULES Revised September 2015 NEVADA GOOD SAMS GAME RULES Revised September 2015 GENERAL GAME RULES FOR TOURNAMENTS: All games will be played in accordance with Nevada Good Sam Official Game rules. In order to participate for the Nevada

More information

More Activities to Reinforce and Teach Sight Words

More Activities to Reinforce and Teach Sight Words More Activities to Reinforce and Teach Sight Words Bean Bag Toss Materials: One shower curtain liner divided into 20 boxes with a permanent marker Bean Bag Words on large cards Attach the words to the

More information

Power Solutions November 19, 2017

Power Solutions November 19, 2017 All problems proposed by Jordan Haack The Rules of Mastermind Power s November 19, 2017 MasterMind is a two-player code-breaking game. One of the players is the code-setter, and the other player acts as

More information

For our EC331 project we successfully designed and implemented a PIC based Tic-Tac-Toe game using the PIC16874.

For our EC331 project we successfully designed and implemented a PIC based Tic-Tac-Toe game using the PIC16874. EC331 Project Report To: Dr. Song From: Colin Hill and Peter Haugen Date: 6/7/2004 Project: Pic based Tic-Tac-Toe System Introduction: For our EC331 project we successfully designed and implemented a PIC

More information

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

Phase 10 Masters Edition Copyright 2000 Kenneth R. Johnson For 2 to 4 Players Phase 10 Masters Edition Copyright 2000 Kenneth R. Johnson For 2 to 4 Players Object: To be the first player to complete all 10 Phases. In case of a tie, the player with the lowest score is the winner.

More information

class TicTacToe: def init (self): # board is a list of 10 strings representing the board(ignore index 0) self.board = [" "]*10 self.

class TicTacToe: def init (self): # board is a list of 10 strings representing the board(ignore index 0) self.board = [ ]*10 self. The goal of this lab is to practice problem solving by implementing the Tic Tac Toe game. Tic Tac Toe is a game for two players who take turns to fill a 3 X 3 grid with either o or x. Each player alternates

More information

EXPLORING TIC-TAC-TOE VARIANTS

EXPLORING TIC-TAC-TOE VARIANTS EXPLORING TIC-TAC-TOE VARIANTS By Alec Levine A SENIOR RESEARCH PAPER PRESENTED TO THE DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE OF STETSON UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR

More information

Absolute Backgammon for the ipad Manual Version 2.0 Table of Contents

Absolute Backgammon for the ipad Manual Version 2.0 Table of Contents Absolute Backgammon for the ipad Manual Version 2.0 Table of Contents Game Design Philosophy 2 Game Layout 2 How to Play a Game 3 How to get useful information 4 Preferences/Settings 5 Main menu 6 Actions

More information

GeoPlunge Combo 1 Overview

GeoPlunge Combo 1 Overview GeoPlunge Combo 1 Overview These are the rules for the easiest version of play. For more advanced versions, visit www.learningplunge.org and click on the resources tab. Cards: The cards used in Combo 1:

More information

Codebreaker Lesson Plan

Codebreaker Lesson Plan Codebreaker Lesson Plan Summary The game Mastermind (figure 1) is a plastic puzzle game in which one player (the codemaker) comes up with a secret code consisting of 4 colors chosen from red, green, blue,

More information

Thank You for Downloading this Resource from MathGeekMama.com!

Thank You for Downloading this Resource from MathGeekMama.com! Thank You for Downloading this Resource from MathGeekMama.com! I sincerely hope you find this resource to be helpful and enjoyable for you and your students! I only ask that you abide by Math Geek Mama

More information

THE APPLICATION OF DEPTH FIRST SEARCH AND BACKTRACKING IN SOLVING MASTERMIND GAME

THE APPLICATION OF DEPTH FIRST SEARCH AND BACKTRACKING IN SOLVING MASTERMIND GAME THE APPLICATION OF DEPTH FIRST SEARCH AND BACKTRACKING IN SOLVING MASTERMIND GAME Halida Astatin (13507049) Informatics School of Electrical Engineering and Informatics Institut Teknologi Bandung Jalan

More information

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

Make better decisions. Learn the rules of the game before you play. BLACKJACK BLACKJACK Blackjack, also known as 21, is a popular casino card game in which players compare their hand of cards with that of the dealer. To win at Blackjack, a player must create a hand with

More information

1. Definitions 2. Mode of Play 3. How to Play 4. Settlement 5. Irregularities

1. Definitions 2. Mode of Play 3. How to Play 4. Settlement 5. Irregularities 7 UP BACCARAT (MBS) Games Rules w.e.f. 2 February 2011 1. Definitions 2. Mode of Play 3. How to Play 4. Settlement 5. Irregularities - 1 - 1. Definitions 1.1. In these rules: 1.1.1. "Hand" means the cards

More information

The Mathematics of Playing Tic Tac Toe

The Mathematics of Playing Tic Tac Toe The Mathematics of Playing Tic Tac Toe by David Pleacher Although it has been shown that no one can ever win at Tic Tac Toe unless a player commits an error, the game still seems to have a universal appeal.

More information

Teams. Against. Humanity

Teams. Against. Humanity Teams Against Humanity An office game that s only more work appropriate than the original if you want it to be INSTRUCTIONS Solo Players (less than 12 players) OVERVIEW At the beginning of each round,

More information

5 Games For Building Logic

5 Games For Building Logic 5 Games For Building Logic Hands on Math A collection of incredibly awesome math games Edited by Emily Dyke and Joe Dyke A mind is not a vessel to be filled but a fire to be kindled. - Plutarch Hands-

More information

HAND & FOOT CARD GAME RULES

HAND & FOOT CARD GAME RULES HAND & FOOT CARD GAME RULES Note: There are many versions of Hand & Foot Rules published on the Internet and other sources. Along with basic rules, there are also many optional rules that may be adopted

More information

https://www.teachersp ayteachers.com/store/ Worksheetjunkie

https://www.teachersp ayteachers.com/store/ Worksheetjunkie https://www.teachersp ayteachers.com/store/ Worksheetjunkie Copyright 2017 IDEA GALAXY. All rights reserved by author. Permission to copy for single classroom use only. Electronic distribution limited

More information

the alien has the option of asserting that all 100 aliens have been to the living room by now. If this assertion is false, all 100 aliens are thrown

the alien has the option of asserting that all 100 aliens have been to the living room by now. If this assertion is false, all 100 aliens are thrown UW Math Circle 1. Jafar has four prisoners. He lines up three of them: Aladdin faces the wall, the Sultan stands behind Aladdin, and Abu stands behind the Sultan. The fourth prisoner, Jasmine, is put in

More information

CMPUT 396 Tic-Tac-Toe Game

CMPUT 396 Tic-Tac-Toe Game CMPUT 396 Tic-Tac-Toe Game Recall minimax: - For a game tree, we find the root minimax from leaf values - With minimax we can always determine the score and can use a bottom-up approach Why use minimax?

More information

Journey through Game Design

Journey through Game Design Simulation Games in Education Spring 2010 Introduction At the very beginning of semester we were required to choose a final project to work on. I found this a bit odd and had the slightest idea what to

More information

Math Games Ideas. For School or Home Education. by Teresa Evans. Copyright 2005 Teresa Evans. All rights reserved.

Math Games Ideas. For School or Home Education. by Teresa Evans. Copyright 2005 Teresa Evans. All rights reserved. Math Games Ideas For School or Home Education by Teresa Evans Copyright 2005 Teresa Evans. All rights reserved. Permission is given for the making of copies for use in the home or classroom of the purchaser

More information

Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves.

Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves. 1 Tutorial 1 1. Combinatorial games. Recall that a game is called a combinatorial game if it satisfies the following axioms. (i) There are 2 players. (ii) There are finite many possible positions. (iii)

More information

Hand and Foot Canasta. Use one deck more than the number of players, so 4 players = 5 decks plus jokers game youʹd use five decks plus ten jokers.

Hand and Foot Canasta. Use one deck more than the number of players, so 4 players = 5 decks plus jokers game youʹd use five decks plus ten jokers. Hand and Foot Canasta Use one deck more than the number of players, so 4 players = 5 decks plus jokers game youʹd use five decks plus ten jokers. The Shuffle All the cards are shuffled together and placed

More information

Mohammad Hossein Manshaei 1394

Mohammad Hossein Manshaei 1394 Mohammad Hossein Manshaei manshaei@gmail.com 394 Some Formal Definitions . First Mover or Second Mover?. Zermelo Theorem 3. Perfect Information/Pure Strategy 4. Imperfect Information/Information Set 5.

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

Muandlotsmore.qxp:4-in1_Regel.qxp 10/3/07 5:31 PM Page 1

Muandlotsmore.qxp:4-in1_Regel.qxp 10/3/07 5:31 PM Page 1 Muandlotsmore.qxp:4-in1_Regel.qxp 10/3/07 5:31 PM Page 1 This collection contains four unusually great card games. The games are called: MÜ, NJET, Was sticht?, and Meinz. Each of these games is a trick-taking

More information

Definition 1 (Game). For us, a game will be any series of alternating moves between two players where one player must win.

Definition 1 (Game). For us, a game will be any series of alternating moves between two players where one player must win. Abstract In this Circles, we play and describe the game of Nim and some of its friends. In German, the word nimm! is an excited form of the verb to take. For example to tell someone to take it all you

More information

V. Adamchik Data Structures. Game Trees. Lecture 1. Apr. 05, Plan: 1. Introduction. 2. Game of NIM. 3. Minimax

V. Adamchik Data Structures. Game Trees. Lecture 1. Apr. 05, Plan: 1. Introduction. 2. Game of NIM. 3. Minimax Game Trees Lecture 1 Apr. 05, 2005 Plan: 1. Introduction 2. Game of NIM 3. Minimax V. Adamchik 2 ü Introduction The search problems we have studied so far assume that the situation is not going to change.

More information

game tree complete all possible moves

game tree complete all possible moves Game Trees Game Tree A game tree is a tree the nodes of which are positions in a game and edges are moves. The complete game tree for a game is the game tree starting at the initial position and containing

More information

Make Math Meaningful!

Make Math Meaningful! Make Math Meaningful! I hear, and I forget. I see, and I remember. I do, and I understand. Knowledge comes easily to those who understand. Proverbs 14:6 B-A-T Place Value Game B = Brilliant; right number

More information

Game, Set, and Match Carl W. Lee September 2016

Game, Set, and Match Carl W. Lee September 2016 Game, Set, and Match Carl W. Lee September 2016 Note: Some of the text below comes from Martin Gardner s articles in Scientific American and some from Mathematical Circles by Fomin, Genkin, and Itenberg.

More information

ASSAULT OBJECTIVES DEPLOYMENT HEXADOME SCORING ZONE END-GAME CONDITIONS. SCENARIOS v 1.3

ASSAULT OBJECTIVES DEPLOYMENT HEXADOME SCORING ZONE END-GAME CONDITIONS. SCENARIOS v 1.3 SCENARIOS v 1.3 ASSAULT Being the only player with one or more Characters inside the Scoring Zone at the end of the Round (3 Victory Points). of the Round than the opponent (2 Victory Points, but only

More information

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.

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. Odds and Evens Skill: Identifying even and odd numbers Materials: 1 die to share 1. Each player takes 5 counters and puts the rest in a pile between them. 2. Player 1 predicts whether he will roll ODD

More information

PROJECT REPORT STUDY WEEK "FASCINATING INFORMATICS" Game Platform Mastermind. Abstract. 1 Introduction. 1.1 Mastermind Game Rules

PROJECT REPORT STUDY WEEK FASCINATING INFORMATICS Game Platform Mastermind. Abstract. 1 Introduction. 1.1 Mastermind Game Rules PROJECT REPORT STUDY WEEK "FASCINATING INFORMATICS" Game Platform Mastermind Lukas Meili 1, Naoki Pross 2, Luke Stampfli 3 1 Kantonsschule Büelrain, Winterthur, Switzerland, 2 Scuola Arti e Mestieri Bellinzona,

More information

TIC TAC TOE: 8 STRATEGIES TO WIN EVERY GAME BY PUZZLELAND

TIC TAC TOE: 8 STRATEGIES TO WIN EVERY GAME BY PUZZLELAND TIC TAC TOE: 8 STRATEGIES TO WIN EVERY GAME BY PUZZLELAND DOWNLOAD EBOOK : TIC TAC TOE: 8 STRATEGIES TO WIN EVERY GAME BY PUZZLELAND PDF Click link bellow and free register to download ebook: TIC TAC TOE:

More information

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller. Catch the Dots Introduction In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller. Step 1: Creating a controller Let s start

More information

Yourturnmyturn.com: Kahuna Rules. Gunther Cornett Copyright 2019 Kosmos

Yourturnmyturn.com: Kahuna Rules. Gunther Cornett Copyright 2019 Kosmos Yourturnmyturn.com: Kahuna Rules Gunther Cornett Copyright 2019 Kosmos Inhoud Kahuna rules...1 Introduction and Object of the board game...1 Gameplay...2 Scoring and Game End...3 Clarification...3 i Kahuna

More information

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

STATION 1: ROULETTE. Name of Guesser Tally of Wins Tally of Losses # of Wins #1 #2 Casino Lab 2017 -- ICM The House Always Wins! Casinos rely on the laws of probability and expected values of random variables to guarantee them profits on a daily basis. Some individuals will walk away

More information

Acing Math (One Deck At A Time!): A Collection of Math Games. Table of Contents

Acing Math (One Deck At A Time!): A Collection of Math Games. Table of Contents Table of Contents Introduction to Acing Math page 5 Card Sort (Grades K - 3) page 8 Greater or Less Than (Grades K - 3) page 9 Number Battle (Grades K - 3) page 10 Place Value Number Battle (Grades 1-6)

More information

The Game of SET R, and its Mathematics.

The Game of SET R, and its Mathematics. The Game of SET R, and its Mathematics. Bobby Hanson April 9, 2008 But, as for everything else, so for a mathematical theory beauty can be perceived but not explained. A. Cayley Introduction The game of

More information

Poker Hand Rankings Highest to Lowest A Poker Hand s Rank determines the winner of the pot!

Poker Hand Rankings Highest to Lowest A Poker Hand s Rank determines the winner of the pot! POKER GAMING GUIDE Poker Hand Rankings Highest to Lowest A Poker Hand s Rank determines the winner of the pot! ROYAL FLUSH Ace, King, Queen, Jack, and 10 of the same suit. STRAIGHT FLUSH Five cards of

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

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

Lecture 33: How can computation Win games against you? Chess: Mechanical Turk 4/2/0 CS 202 Introduction to Computation " UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department Lecture 33: How can computation Win games against you? Professor Andrea Arpaci-Dusseau Spring 200

More information

Contents. Overview. by Wolfgang Kramer players: 2-7 age: 8 years and up length: 45 minutes. 7 agent figures. 1 safe. 7 scoring markers.

Contents. Overview. by Wolfgang Kramer players: 2-7 age: 8 years and up length: 45 minutes. 7 agent figures. 1 safe. 7 scoring markers. by Wolfgang Kramer players: 2-7 age: 8 years and up length: 45 minutes 7 agent figures Contents 1 safe 7 scoring markers 7 agent cards 1 die 1 game board 26 Top Secret cards Overview As in any spy story,

More information

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

For this assignment, your job is to create a program that plays (a simplified version of) blackjack. Name your program blackjack.py. CMPT120: Introduction to Computing Science and Programming I Instructor: Hassan Khosravi Summer 2012 Assignment 3 Due: July 30 th This assignment is to be done individually. ------------------------------------------------------------------------------------------------------------

More information

HAND and FOOT RULES Georgia Mountaineers Version

HAND and FOOT RULES Georgia Mountaineers Version HAND and FOOT RULES Georgia Mountaineers Version WebMaster Note: There are many versions of Hand & Foot Rules published on the Internet and other sources. Along with basic rules, there are also many optional

More information

Blackjack Project. Due Wednesday, Dec. 6

Blackjack Project. Due Wednesday, Dec. 6 Blackjack Project Due Wednesday, Dec. 6 1 Overview Blackjack, or twenty-one, is certainly one of the best-known games of chance in the world. Even if you ve never stepped foot in a casino in your life,

More information

OCTAGON 5 IN 1 GAME SET

OCTAGON 5 IN 1 GAME SET OCTAGON 5 IN 1 GAME SET CHESS, CHECKERS, BACKGAMMON, DOMINOES AND POKER DICE Replacement Parts Order direct at or call our Customer Service department at (800) 225-7593 8 am to 4:30 pm Central Standard

More information

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

Background. Game Theory and Nim. The Game of Nim. Game is Finite 1/27/2011 Background Game Theory and Nim Dr. Michael Canjar Department of Mathematics, Computer Science and Software Engineering University of Detroit Mercy 26 January 2010 Nimis a simple game, easy to play. It

More information

1 - Some basic definitions 2 - What is Duplicate Texas Holdem? 3 - How it works

1 - Some basic definitions 2 - What is Duplicate Texas Holdem? 3 - How it works 1 1 - Some basic definitions 2 - What is Duplicate Texas Holdem? 3 - How it works 2 Basic definitions Carry-over: The amount, if any, added to a player s chip count at the start of a Session based on the

More information

ALGEBRA 2 HONORS QUADRATIC FUNCTIONS TOURNAMENT REVIEW

ALGEBRA 2 HONORS QUADRATIC FUNCTIONS TOURNAMENT REVIEW ALGEBRA 2 HONORS QUADRATIC FUNCTIONS TOURNAMENT REVIEW Thanks for downloading my product! Be sure to follow me for new products, free items and upcoming sales. www.teacherspayteachers.com/store/jean-adams

More information

Supreme Hot Video Slot. Introduction. How to Bet. Gamble Feature

Supreme Hot Video Slot. Introduction. How to Bet. Gamble Feature Supreme Hot Video Slot Introduction How to Bet Gamble Feature Game Controls Rules Jackpot Cards Bonus Game Interruptions Return to Player Introduction Supreme Hot video slot is a 3-reel. The slot consists

More information

Announcements. Homework 1 solutions posted. Test in 2 weeks (27 th ) -Covers up to and including HW2 (informed search)

Announcements. Homework 1 solutions posted. Test in 2 weeks (27 th ) -Covers up to and including HW2 (informed search) Minimax (Ch. 5-5.3) Announcements Homework 1 solutions posted Test in 2 weeks (27 th ) -Covers up to and including HW2 (informed search) Single-agent So far we have look at how a single agent can search

More information

Exploitability and Game Theory Optimal Play in Poker

Exploitability and Game Theory Optimal Play in Poker Boletín de Matemáticas 0(0) 1 11 (2018) 1 Exploitability and Game Theory Optimal Play in Poker Jen (Jingyu) Li 1,a Abstract. When first learning to play poker, players are told to avoid betting outside

More information

Probability and Statistics

Probability and Statistics Probability and Statistics Activity: Do You Know Your s? (Part 1) TEKS: (4.13) Probability and statistics. The student solves problems by collecting, organizing, displaying, and interpreting sets of data.

More information

BLACKJACK Perhaps the most popular casino table game is Blackjack.

BLACKJACK Perhaps the most popular casino table game is Blackjack. BLACKJACK Perhaps the most popular casino table game is Blackjack. The object is to draw cards closer in value to 21 than the dealer s cards without exceeding 21. To play, you place a bet on the table

More information

LET S PLAY PONTOON. Pontoon also offers many unique payouts as well as a Super Bonus of up to $5000 on certain hands.

LET S PLAY PONTOON. Pontoon also offers many unique payouts as well as a Super Bonus of up to $5000 on certain hands. How to play PONTOON LET S PLAY PONTOON Pontoon is a popular game often played in homes around Australia. Pontoon is great fun on its own or as an introduction to other more strategic casino card games

More information

Ovals and Diamonds and Squiggles, Oh My! (The Game of SET)

Ovals and Diamonds and Squiggles, Oh My! (The Game of SET) Ovals and Diamonds and Squiggles, Oh My! (The Game of SET) The Deck: A Set: Each card in deck has a picture with four attributes shape (diamond, oval, squiggle) number (one, two or three) color (purple,

More information

Artificial Intelligence Lecture 3

Artificial Intelligence Lecture 3 Artificial Intelligence Lecture 3 The problem Depth first Not optimal Uses O(n) space Optimal Uses O(B n ) space Can we combine the advantages of both approaches? 2 Iterative deepening (IDA) Let M be a

More information

Obliged Sums of Games

Obliged Sums of Games Obliged Sums of Games Thomas S. Ferguson Mathematics Department, UCLA 1. Introduction. Let g be an impartial combinatorial game. In such a game, there are two players, I and II, there is an initial position,

More information

A Rule-Based Learning Poker Player

A Rule-Based Learning Poker Player CSCI 4150 Introduction to Artificial Intelligence, Fall 2000 Assignment 6 (135 points), out Tuesday October 31; see document for due dates A Rule-Based Learning Poker Player For this assignment, teams

More information

Array Cards (page 1 of 21)

Array Cards (page 1 of 21) Array Cards (page 1 of 21) 9 11 11 9 3 11 11 3 3 12 12 3 Session 1.2 and throughout Investigations 1, 2, and 4 Unit 3 M17 Array Cards (page 2 of 21) 2 8 8 2 2 9 9 2 2 10 10 2 2 11 11 2 3 8 8 3 3 6 6 3

More information

by Teresa Evans Copyright 2005 Teresa Evans. All rights reserved.

by Teresa Evans Copyright 2005 Teresa Evans. All rights reserved. by Teresa Evans Copyright 2005 Teresa Evans. All rights reserved. Permission is given for the making of copies for use in the home or classroom of the purchaser only. Making Math More Fun Math Games Ideas

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

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

The student will explain and evaluate the financial impact and consequences of gambling.

The student will explain and evaluate the financial impact and consequences of gambling. What Are the Odds? Standard 12 The student will explain and evaluate the financial impact and consequences of gambling. Lesson Objectives Recognize gambling as a form of risk. Calculate the probabilities

More information

Programming Languages and Techniques Homework 3

Programming Languages and Techniques Homework 3 Programming Languages and Techniques Homework 3 Due as per deadline on canvas This homework deals with the following topics * lists * being creative in creating a game strategy (aka having fun) General

More information

WORLD EDITION Bernhard Lach & Uwe Rapp

WORLD EDITION Bernhard Lach & Uwe Rapp GAME RULES Rules of the Game WORLD EDITION Bernhard Lach & Uwe Rapp Contents 200 location cards (170 cities and 30 landmarks) in two levels of difficulty 1 compass rose card 1 double sided map for reference

More information

Playing Games. Henry Z. Lo. June 23, We consider writing AI to play games with the following properties:

Playing Games. Henry Z. Lo. June 23, We consider writing AI to play games with the following properties: Playing Games Henry Z. Lo June 23, 2014 1 Games We consider writing AI to play games with the following properties: Two players. Determinism: no chance is involved; game state based purely on decisions

More information

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0 Part II: Number Guessing Game Part 2 Lab Guessing Game version 2.0 The Number Guessing Game that just created had you utilize IF statements and random number generators. This week, you will expand upon

More information

A Brief Introduction to Game Theory

A Brief Introduction to Game Theory A Brief Introduction to Game Theory Jesse Crawford Department of Mathematics Tarleton State University April 27, 2011 (Tarleton State University) Brief Intro to Game Theory April 27, 2011 1 / 35 Outline

More information

UNIT 13A AI: Games & Search Strategies. Announcements

UNIT 13A AI: Games & Search Strategies. Announcements UNIT 13A AI: Games & Search Strategies 1 Announcements Do not forget to nominate your favorite CA bu emailing gkesden@gmail.com, No lecture on Friday, no recitation on Thursday No office hours Wednesday,

More information

POKER. May 31, June 2 & 9, 2016

POKER. May 31, June 2 & 9, 2016 POKER Brought to you by: May 31, June 2 & 9, 2016 TEAM ROSTER (3 members) Your co-ed team will consist of 3 players, either 2 male and 1 female, or 2 female and 1 male. All players must sign the roster

More information

Stat 155: solutions to midterm exam

Stat 155: solutions to midterm exam Stat 155: solutions to midterm exam Michael Lugo October 21, 2010 1. We have a board consisting of infinitely many squares labeled 0, 1, 2, 3,... from left to right. Finitely many counters are placed on

More information

1) = 10) 4-15 = 2) (-4)(-3) = 11) = 4) -9 6 = 13) = 5) = 14) (-3)(15) = = 15) 7) = 16) -7 (-18) =

1) = 10) 4-15 = 2) (-4)(-3) = 11) = 4) -9 6 = 13) = 5) = 14) (-3)(15) = = 15) 7) = 16) -7 (-18) = Name: Ms. Napolitano Date: Activity # Day 10 : I can use integer operations to solve real world problems. Try Now (10) Add, Subtract, Multiply or Divide. 1) -80-4 = 10) 4-15 = 2) (-4)(-3) = 11) 16 33 =

More information

SECTION NUMBER. Check that your exam contains 25 questions numbered sequentially.

SECTION NUMBER. Check that your exam contains 25 questions numbered sequentially. MATH 07 FAKE FINAL EXAM April 20 NAME STUDENT NUMBER INSTRUCTOR SECTION NUMBER On your scantron, write and bubble your PSU ID, Section Number, and Test Version. Failure to correctly code these items may

More information

Probability --QUESTIONS-- Principles of Math 12 - Probability Practice Exam 1

Probability --QUESTIONS-- Principles of Math 12 - Probability Practice Exam 1 Probability --QUESTIONS-- Principles of Math - Probability Practice Exam www.math.com Principles of Math : Probability Practice Exam Use this sheet to record your answers:... 4... 4... 4.. 6. 4.. 6. 7..

More information

BLACKJACK. The following words and terms, when used in this section, shall have the following meanings unless the context clearly indicates otherwise.

BLACKJACK. The following words and terms, when used in this section, shall have the following meanings unless the context clearly indicates otherwise. BLACKJACK 1. Definitions The following words and terms, when used in this section, shall have the following meanings unless the context clearly indicates otherwise. Blackjack-- shall mean an ace and any

More information

MULTIPLICATION FACT FOOTBALL

MULTIPLICATION FACT FOOTBALL DIRECTIONS FOR STUDENTS: MULTIPLICATION FACT FOOTBALL 1. Students pair up and decide who will answer questions first (be on offense). That student places his or her helmet (or a colored counter) onto the

More information

UNIT 13A AI: Games & Search Strategies

UNIT 13A AI: Games & Search Strategies UNIT 13A AI: Games & Search Strategies 1 Artificial Intelligence Branch of computer science that studies the use of computers to perform computational processes normally associated with human intellect

More information

The Secret to Performing the Jesse James Card Trick

The Secret to Performing the Jesse James Card Trick Introduction: The Secret to Performing the Jesse James Card Trick The Jesse James card trick is a simple trick to learn. You must tell the following story, or a reasonable facsimile of this story, prior

More information

Problem Set 10 2 E = 3 F

Problem Set 10 2 E = 3 F Problem Set 10 1. A and B start with p = 1. Then they alternately multiply p by one of the numbers 2 to 9. The winner is the one who first reaches (a) p 1000, (b) p 10 6. Who wins, A or B? (Derek) 2. (Putnam

More information

COMPOSITION CRAM INSTRUCTIONS:

COMPOSITION CRAM INSTRUCTIONS: COMPOSITION CRAM INSTRUCTIONS: Make sure each student has a piece of paper and a writing utensil. Display the current vocabulary list on the board. Instruct students to write a story that includes as many

More information

2 person perfect information

2 person perfect information Why Study Games? Games offer: Intellectual Engagement Abstraction Representability Performance Measure Not all games are suitable for AI research. We will restrict ourselves to 2 person perfect information

More information

Grade 7/8 Math Circles November 24/25, Review What have you learned in the past seven weeks?

Grade 7/8 Math Circles November 24/25, Review What have you learned in the past seven weeks? Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 7/8 Math Circles November 24/25, 2015 Review What have you learned in the past seven weeks? First

More information

Problem A To and Fro (Problem appeared in the 2004/2005 Regional Competition in North America East Central.)

Problem A To and Fro (Problem appeared in the 2004/2005 Regional Competition in North America East Central.) Problem A To and Fro (Problem appeared in the 2004/2005 Regional Competition in North America East Central.) Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number

More information