Poker UML and ADT design plan.

Slides:



Advertisements
Similar presentations
Black Jack in Objective-C
Advertisements

Math and Card Games By: Candace DiBiano.
By: Jonathan Quenzer. To have a computer learn how to play Blackjack through reinforcement learning Computer starts off with no memory. After each hand.
Driving Rules: Signs and Symbols 1.Identify sign or symbol on the road 2.Explain what it means.
1 Greg Wilson BA 4234 CSC407: Software Architecture Fall 2006 Refactoring.
© Glenn Rowe AC Lab 2 A simple card game (twenty- one)
CS1 Final Exam Review By Rebecca Schulman December 4, 2002.
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.
BLACKJACK SHARKS: Aabida Mayet, Omar Bacerra, Eser Kaptan March 15, 2010.
How to Play Real Estate Dough™ Negotiate Your Way to More Dough!
Rene Plowden Joseph Libby. Improving the profit margin by optimizing the win ratio through the use of various strategies and algorithmic computations.
Design Example. Requirements Make a program that simulates the game of blackjack For now, we ignore money/betting…. just simulate game play But… this.
Elevens Lab Student Material – on website
Centinel tournament ● A deck: the numbers in random order ● A game lasts until no numbers are left in deck ● A game is played like this (first player.
ECS15 sequence. Sequences  There are three kinds of sequences in Python: Strings – we use these a lot. “albatross” Lists – we saw those last time, they.
Intro to Probability & Games
Project 1 Blackjack simulation Graphics interface provided
Chapter 5 Black Jack. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. 5-2 Chapter Objectives Provide a case study example from problem statement.
Mau Mau (mow- mow) A card game
CS 106 Introduction to Computer Science I 04 / 07 / 2010 Instructor: Michael Eckmann.
o Simulate a deck of playing cards o Shuffle the deck o Deal (5) cards into the hand o Turn over the first card o The user must guess whether the next.
o Simulate a deck of playing cards o Shuffle the deck o Deal 5 cards into the hand o Turn over the first card o The user must guess whether the next card.
VOCABULARY  Deck or pack  Suit  Hearts  Clubs  Diamonds  Spades  Dealer  Shuffle  Pick up  Rank  Draw  Set  Joker  Jack 
UML January 24, 2011 CSE 403, Winter 2011, Brun Design and UML Class Diagrams.
1 The game of poker You are given 5 cards (this is 5-card stud poker) The goal is to obtain the best hand you can The possible poker hands are (in increasing.
Blackjack: Myths vs. Reality Group K Andrew KerrAndrew Phillips Sven SkoogWoj Wrona.
The Parameterized Poker Squares EAAI NSG Challenge
©1999 Indiana University Trustees Basic Set Theory Definitions A set is a collection of objects or elements An element is an object that make up a set.
Sequence Diagram Tutorial
Blackjack: An Analysis of Probability By: John Theobald.
Casinos There’s a reason they are big and extravagant!
Computer Science 111 Fundamentals of Programming I More Data Modeling.
Basic Counting Lecture 12: Oct 28. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations,
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
Learning BlackJack with ANN (Aritificial Neural Network) Ip Kei Sam ID:
Blackjack: A Beatable Game Amber Guo Adapted from: David Parker Advisor: Dr. Wyels California Lutheran University ‘05.
Object Oriented Design. Object-Oriented Design Method for designing computer programs –Useful for thinking about large problems Consider “objects” interacting.
CSC172 Class Design Pepper. Goals How to design classes How to think in terms of objects StarUML Code Generation.
CSC480 Class Design Pepper. Goals How to design classes StarUML Code Generation.
Gambling Because why not?. Blackjack and card counting Card counting is a casino card game strategy used primarily in the blackjack family of casino games.
 m C r =m!/r!(m-r)!  Property: m C r = m C (m-r)  Example: ◦ If you have 10 pens, all in different colors, and you want to bring two of them to class,
November 28, 2005ICP: Chapter 9: Object Oriented Programming 1 Introduction to Computer Programming Chapter 9: Object Oriented Programming Michael Scherger.
MA471 Fall 2003 Lecture 2. On With The Games Today we are going to watch each group play a couple of rounds of cards. We will go through the game slowly.
MATH 110 Sec 13.1 Intro to Probability Practice Exercises We are flipping 3 coins and the outcomes are represented by a string of H’s and T’s (HTH, etc.).
Warm-Up Pg. 361 # 2, 3, 4b. Unit 2 Theoretical Probability of Multiple Events Learning Goal: I can determine the theoretical probability of an and represent.
The Pentium Goes to Vegas Training a Neural Network to Play BlackJack Paul Ruvolo and Christine Spritke.
Card Game Z  Agree on a dealer and a score keeper  The dealer should remove all the Jacks, Queens, Kings & Jokers from the pack and then shuffle  The.
Star UML and CRC Cards Pepper.
Make fortune via Aviator marked playing cards. Poker is an interesting and profitable game for people to play when they have time. Generally, they tend.
POKER-6S ooA, OOD, OOP.
Python programming - Defining Classes
Ionic Poker.
Sequential Placement Optimization Games: Poker Squares, Word Squares, and Take It Easy! Todd W. Neller Abstract: In this talk, we teach how to play “Poker.
Lecture 11.
How likely is it? Probability.
Chapter 5 Black Jack.
The Parameterized Poker Squares EAAI NSG Challenge
Probability of casino games
Intro Rules of Game Debrief
Blackjack: Counting Hands and Counting Cards
Combinations.
How to Play Real Estate Dough™
Term Project: Poker Game
Task 2 Implementation help
Semester Exam Review DAY 3.
Structure diagrams for lab 13
Multiplication and Division Facts Rummy
BY: Cesar, Jennifer, Adrianne & Allen
Midterm Review CSCI 360, Dr. X.
HOW TO PLAY POKER.
Presentation transcript:

Poker UML and ADT design plan

AGENDA Please describe here how you design plan goes You need to draw a full class diagram of your OOA design For each class you need to describe a short ADT specification

Blackjack Class Diagram (EXAMPLE) 1 Dealer name budget hand state strategy deck shuffle() 0..52 1 Deck cards shuffle() draw_card() Card rank suit value() Game dealer players log open() close() run() history() is_finished() 0..52 0..1 Hand cards soft add(card) value() Player name budget hand state strategy hit() stand() 2..6 log 1 Of course, you have to do a similar Diagram for Poker … string 1 state

Stack: Abstract Data Type Interface s = Stack() Constructor Create a new empty stack s.push(item) Mutator Add an item to the top of the stack s.pop() Mutator Pop an item from the top of the stack s.peek() Accessor Return the item to the top of the stack (don’t pop it!) Return None if stack is empty (this is not a good idea, why? Issue error?) s.size() Accessor Return the number of items in the stack s.is_empty() Accessor Return True if stack is empty, False if stack is non-empty Example of how an ADT Looks like!

Resources for further study http://edn.embarcadero.com/article/31863 http://en.wikipedia.org/wiki/Class_diagram http://en.wikipedia.org/wiki/Unified_Modeling_Language http://en.wikipedia.org/wiki/List_of_UML_tools

You can use the following symbols for drawing your Class diagrams Dealer name budget hand state strategy deck shuffle() Hand cards soft add(card) value() Game dealer players log open() close() run() history() is_finished() Player name budget hand state strategy hit() stand() Card rank suit value() Deck cards shuffle() draw_card()

Game Dealer Player Hand Game Player Deck Card Hand Card Game string Player string