关闭

Simple casino simulator project

这项目被授予 zheming62 ,费用为$100 USD

为像这样的项目获取免费报价
雇主工作
项目预算
$30 - $250 USD
全部竞标
5
项目描述

The goal of the project is to create and call your own functions and to practice test case development.

The user can play any one of the games at the casino, for as long as they want and in any order that they want, provided they haven't gone bankrupt. The games at the casino are high-low, 21, craps and the slots. The user should be able to leave the casino (exit the program) at any time from the program's main menu.

Have the user start with a random amount of money between $100 and $200. The program should display a menu with the following options:

1) Play High-Low

2) Play 21

3) Play Craps

4) Play the Slots

5) Run Test Cases

6) Leave Casino

The program should have functions to perform each of the options 1-5 in the menu. Additionally, displaying the menu should be a function that is called from main( ) and you should create a function to calculate the amount won. A good modular design will require more than just these functions.

You should display the user's current balance before each game. After that, you should ask them how much they want to bet on that round of the game. Do not allow the player to bet more than they have or less than $1! You can assume that the user only bet whole dollar amounts.

授予:
需要技能

浏览相关技能

相关项目

人们在Freelancer上干的其他事

最新文章

在寻找赚取金钱的机会?

  • 设定您的预算和时间框架
  • 大致描述您的建议方案
  • 为您的工作领取工资

雇用同样在该项目上竞标的威客

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online