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

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

Codebreaker Lesson Plan

Power Solutions November 19, 2017

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

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

Problem F. Chessboard Coloring

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

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

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

Probability and Statistics

EXPLORING TIC-TAC-TOE VARIANTS

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

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

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

Wild. Overlay Wild. Bonus Game. Football: Champions Cup Game Rules

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

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

More Activities to Reinforce and Teach Sight Words

9694 THINKING SKILLS

The Mathematics of Playing Tic Tac Toe

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

Stat 155: solutions to midterm exam

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

Thank You for Downloading this Resource from MathGeekMama.com!

Teams. Against. Humanity

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

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

Programming Problems 14 th Annual Computer Science Programming Contest

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

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.

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

Before displaying an image, the game should wait for a random amount of time.

Journey through Game Design

CMPUT 396 Tic-Tac-Toe Game

Grade 3. Summer Math Packet. This packet is optional for those students who just completed Grade 2 and who will be in Grade 3 in September.

Math 152: Applicable Mathematics and Computing

LEARNING ABOUT MATH FOR GR 1 TO 2. Conestoga Public School OCTOBER 13, presented by Kathy Kubota-Zarivnij

COMPOSITION CRAM INSTRUCTIONS:

Mohammad Hossein Manshaei 1394

Candidate Instructions

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

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

game tree complete all possible moves

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology

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

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.

Make Math Meaningful!

Sept. 26, 2012

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

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

CSC/MTH 231 Discrete Structures II Spring, Homework 5

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Grade 6 Math Circles Combinatorial Games November 3/4, 2015

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

LITTLE BITES TIC TAC TOE Pair two of your favorite classics- Little Bites and Tic Tac Toe- for a game that is bound to bring back happy memories!

4.2.5 How much can I expect to win?

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

PLAY & WIN!* SUPER RUGBY 2018 DOWNLOAD THE APP TODAY! See inside for more information. *Terms and conditions apply. Metalcraft Insulated Panel Systems

Math Games Played with Cards and Dice (K-3)

ayteachers.com/store/ Worksheetjunkie

6. a) Determine the probability distribution. b) Determine the expected sum of two dice. c) Repeat parts a) and b) for the sum of

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

CMPT 125/128 with Dr. Fraser. Assignment 3

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

HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm.

HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm.

Game 0: One Pile, Last Chip Loses

5 Games For Building Logic

ALGEBRA 2 HONORS QUADRATIC FUNCTIONS TOURNAMENT REVIEW

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

A Tic Tac Toe Learning Machine Involving the Automatic Generation and Application of Heuristics

PROBLEMS & INVESTIGATIONS. Introducing Add to 15 & 15-Tac-Toe

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

MEMORIZATION GAMES MEMORY GAMES FOR NON READING CLUBBERS

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

Obliged Sums of Games

2 person perfect information

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

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

Caterpillar Chase. Race to the Finish. On the Ferris Wheel

PHASE 10 CARD GAME Copyright 1982 by Kenneth R. Johnson

Batman & the Joker Jewels

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

Whenever possible, ask your child to tell you the time to the nearest 5 minutes. Use a clock with hands as well as a digital watch or clock.

2359 (i.e. 11:59:00 pm) on 4/16/18 via Blackboard

Meaningful Ways to Develop Math Facts

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

In the main game there are 3 features which are randomly activated: Legend Spins, the Appetite for Destruction Wild, and the Solo multiplier.

Guns N' Roses Video Slots Touch Game Rules. Wild and Expanding Wild. Random Features in the Main Game. Legend Spins

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015

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

Grade 7/8 Math Circles. February 14 th /15 th. Game Theory. If they both confess, they will both serve 5 hours of detention.

D1 Probability of One Event

ON A ROLL TO FACT FLUENCY

The NES Files

June 2019 and June 2020 series 20 timetable hours

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

Grade 7 Geometry Walking Dog

Classic Dominoes. Number of Players: 2-4

Number Partners Primary Maths Games Box Crib Sheet EASY

Transcription:

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 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 codebreaker. 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 Tic Tac Toe Max Score:B+ 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.

#4 Hi Lo Game Max Score: C In the Hi-Lo Game, the player begins with a score of 1000. 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()

#5 Slot Machine Max Grade C+ We have all seen or played a slot machine before. You job in this program is to create a slot machine with at least 3 wheels of pictures that need to be matched in different combinations to win a prize. The rules are as follows 1)Choose some pictures for the slot machine 2) Determine how to score the game 3) Start the person with a set amount of points 4)Subtract points just for spinning the wheel 5) Update score correctly 6) Add the following functions/methods Private Function RndInt(ByVal intlownum as integer, ByVal inthighnum as integer) as integer Private Sub Spin() 'Randomly selects pictures to show 'Displays pictures End Sub Private Sub CheckResult() 'Checks to see if you won 'Display a message box if your won or lost 'Updates your score correctly End Sub