EGR 141 Computer Problem Solving in Engineering and Computer Science

Slides:



Advertisements
Similar presentations
Probability and Casino Games
Advertisements

The lava escape. How to play: The object of the game is to get to the finish without touching the lava. You can do so by not moving your mouse on to the.
What do you want to be? What are you good at? What do you like?
This is the online version of the game of craps. It is a type of simulation game. It’s as though you’re playing on the real table. Craps is played in most.
Craps. /* * file : Craps.java * file : Craps.java * author: george j. grevera, ph.d. * author: george j. grevera, ph.d. * desc. : program to simulate.
GCSE Computing Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.
TopicRevising equationsLevelFor students aged 8-18 Background This game can be used to motivate students to revise. It provides a quick and fun way to.
Oh Craps! AMATYC Presentation November 2009 Lance Phillips – Tulsa Community College.
Markov Chains Extra problems
Expected Value, the Law of Averages, and the Central Limit Theorem
Card Counting What is it, how does it work, and can I use it to pay for college? (and if it does work, do I even have to go to college?) Jeff O’Connell.
Games of probability What are my chances?. Roll a single die (6 faces). –What is the probability of each number showing on top? Activity 1: Simple probability:
Created by Charles Jenkins
TIMES 3 Technological Integrations in Mathematical Environments and Studies Jacksonville State University 2010.
ECOR 1606 Copyright © 2002, Department of Systems and Computer Engineering, Carleton University 1 Exercise 7 The following is excerpted from Richard Epstein’s.
Craps (!!) Casino Craps: Strategies for Reducing the Odds Against You - by Robert Roto. June 2014 Get this deck at: tinyurl.com/ovnjy7d.
Monopoly Game Example Mutually Exclusive.
Horse race © Horse race: rules 1.Each player chooses a horse and puts it into a stall. Write your name next to the.
Lesson 2-2 Example Solve. Tic Tac Toe Katrina and her friend played Tic Tac Toe. The outcomes of the games are shown in the line plot. Did Katrina.
Mathematical Expectation. A friend offers you the chance to play the following game: You bet $2 and roll a die. If you roll a 6 you win $5 plus your bet.
Probability And Expected Value ————————————
Intro to Probability & Games
Craps Table Odds: Comparing Player’s Edges For Selected Table Odds
Probabilities of common Games How do I avoid bad bets?
start 3 missionaries and 3 cannibals Cannibal & Cannibal Missionary & Missionary Cannibal & Missionary Which one we should move first You lose True.
My game… You pay £1 to play I roll a dice If it lands on 1 or 2 you win £1.50 If it lands on 3, 4, 5, 6 you lose Will this game make me a profit if 10.
Lucky Candies Probability Game By: Laura Santa Maria Isabella Moreno.
Warm up: Solve each system (any method). W-up 11/4 1) Cars are being produced by two factories, factory 1 produces twice as many cars (better management)
The game of Craps Rules of play: 1. Played with two dice (six faces to a die – numbers 1-6 per face) 2. Sequence of betting rounds (or just rounds) 3.
Craps!. Example: A Game of Chance Craps simulator Rules – Roll two dice 7 or 11 on first throw, player wins 2, 3, or 12 on first throw, player loses 4,
Section 11.6 Odds and Expectation Math in Our World.
In this chapter we introduce the idea of what it means for something to be truly random. We also investigate techniques for simulating randomness.
Book look good moon pool foot took zoo instead food noon another Spelling Word BUMPSpelling Word BUMP Unit 5, Week 3.
1 M14 Expected Value, Discrete  Department of ISM, University of Alabama, ’95,2002 Lesson Objectives  Understand the meaning of “expected value.” (Know.
Copyright © 2011 Pearson Education, Inc. Probability: Living with the Odds Discussion Paragraph 7B 1 web 59. Lottery Chances 60. HIV Probabilities 1 world.
Dependent and Independent Events. Events are said to be independent if the occurrence of one event has no effect on the occurrence of another. For example,
Casino Craps by Vera Sanchez
14.3 Simulation Techniques and the Monte Carlo Method simulation technique A simulation technique uses a probability experiment to mimic a real-life situation.
2 Digit Divisors. 3,521 ÷ 26 = = 26 x = 26 x 3 Click the squirrel for a video on repeated multiplication.
13.4 Expected Value Understand the meaning of expected value. Understand the meaning of expected value. Use expected value to solve applied problems. Use.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Functions (Header files and Library Functions) Outline.
Expected Value.
12-5 Sigma Notation. Max value Start value expression.
Probability Evaluation 11/12 th Grade Statistics Fair Games Random Number Generator Probable Outcomes Resources Why Fair Games? Probable Outcome Examples.
Craps Probability Solution Or: More than you ever wanted to know about conditional probability!
Petals Around the Rose. The name of the game is Petals Around the Rose. The name of the game is important. The computer will roll five dice and ask you.
Warm Up If Babe Ruth has a 57% chance of hitting a home run every time he is at bat, run a simulation to find out his chances of hitting a homerun at least.
Transparency 1 Click the mouse button or press the Space Bar to display the answers.
Sample: Probability “Fair Game” Project (borrowed from Intel®, then adjusted)
Fair and Unfair Games Laura Smiley. What makes a game… FairUnfair.
WOULD YOU PLAY THIS GAME? Roll a dice, and win $1000 dollars if you roll a 6.
Lower Key Stage 2 Calculation Workshop. The National Curriculum in England. ©Crown Copyright 2013 Year 3 objectives Addition and Subtraction.
Binomial Probability Section Starter Here’s a game you will like: Let’s bet a dollar on this proposition: I will roll a fair die once. If.
Mathopoly! Created by: Rebecca A. Maupin March 25, 2013.
Her burn hurt first were sir bird shirt visit girl fur done Spelling Word BUMPSpelling Word BUMP Unit 3, Week 5.
LADDERS nakes and Vector. 100 FINISH
A nontransitive talk James Grime. Hi Jim, I was wondering if you can design a set of five non- transitive dice.
Copyright © 2011 Pearson Education, Inc. Probability: Living with the Odds Discussion Paragraph 7B 1 web 59. Lottery Chances 60. HIV Probabilities 1 world.
Spin for Expressions Materials: – Plus/minus spinner – A number cube – Expression playing cards Pass out all the expression cards FACE DOWN. The dealer.
Simulations with Binomials Mean and S.D. of Binomials Section
Thinking Mathematically Expected Value. Expected value is a mathematical way to use probabilities to determine what to expect in various situations over.
Expected Value Standards: MM1D2. Students will use the basic laws of probability. d. Use expected value to predict outcomes. Lesson Essential Question:
The secret of winning The real difference between winners and losers in life – is understanding your chances…
Dice Survivor Game 5. Where is Namdaemun? Use your map at page 151.
Probability of casino games
Vector nakes and L A D D E R S.
GAMBLER’S RUIN in a FAIR GAME
A First Grade Number Routine
Fun… Tree Diagrams… Probability.
Copyright  1997 Oxford University Press All Rights Reserved
Presentation transcript:

EGR 141 Computer Problem Solving in Engineering and Computer Science Laboratory Experiment #4 A Computerized Game : Craps

The Game Dice Game Played in many casinos Bet on outcome of dice roll We will simulate the “pass line” bet

Pass Line bet “Come out” roll First roll of the game Player wins if roll is 7 or 11 Player loses if 2, 3, or 12 Other totals result in establishing the point

Subsequent Roll Try to roll the Point before you roll a 7 All other dice totals don’t count

OFF

OFF Winner

OFF Winner

OFF Loser

ON OFF

ON

ON

ON OFF Loser

ON OFF

ON

ON OFF Winner