Example Software Development - PowerPoint PPT Presentation

1 / 3
About This Presentation
Title:

Example Software Development

Description:

Example Development - Pontoon. CS2200. 1. Example Software Development. Simple Pontoon game ... 5 card trick, dealer wins. else if player got 5 card trick, ... – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 4
Provided by: kenb97
Category:

less

Transcript and Presenter's Notes

Title: Example Software Development


1
Example Software Development
  • Simple Pontoon game

2
Specification
  • implement a restricted form of Pontoon
  • two players
  • Ace must count 11
  • cannot split hands
  • no betting
  • can stick on any total
  • user makes all choices
  • Design the solution before coding!
  • For this example, use arrays

3
Sequence of a single deal
  • Sequence of a single deal
  • Deal 2 cards to player
  • Deal 2 cards to dealer
  • Player inspects cards
  • Player can choose to twist or stick, until
    either stick or bust or reach 5 cards
  • If player did not bust, then dealer must play
    until either stick, bust or reach 5 cards.
  • If the player bust, dealer wins
  • else if dealer bust, player wins
  • else if dealer got Pontoon, dealer wins
  • else if player got Pontoon, player wins
  • else if dealer got 5 card trick, dealer wins
  • else if player got 5 card trick, player wins
  • else if player total is higher, player wins
  • else dealer wins
Write a Comment
User Comments (0)
About PowerShow.com