Tutup

Simple casino simulator project

Proyek ini diberikan kepada zheming62 dengan harga $100 USD.

Dapatkan penawaran gratis untuk proyek seperti ini
Pemberi kerja bekerja
Anggaran Proyek
$30 - $250 USD
Total Penawaran
5
Deskripsi Proyek

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.

Ingin menghasilkan uang?

  • Atur anggaran Anda dan jangka waktunya
  • Uraikan proposal Anda
  • Dapatkan bayaran atas pekerjaan Anda

Pekerjakan para freelancer yang juga menawar di proyek ini

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