Algorithem for create game application, Programming Languages

Assignment Help:

Play is as follows:

1.) Player places a bet

a. Bet is on one of three choice

i. "Player" will win

ii. "Banker" will win

iii. Tie between the "Player" and the "Banker"

2.) Cards are dealt face up

a. "Player" gets the first card and prints out suit and value, e.g., 2 of spades, or queen of clubs

b. "Banker" gets the second etc. "Player" gets the third etc.

c. "Banker" gets the fourth.

d. This ends the dealing of the cards for the round.

3.) Scores are calculated

a. Number cards are their numerical value

b. Face cards have no value

c. Aces are counted as 1

d. If the total is over 10, then divide the total by 10 (hint: use the MOD() function).

i. Example - 16 -> 6 ; 12 -> 2

4.) The higher score wins

5.) The player then receives their winnings at a 1:1 ratio. Thus if the player bet $10 they receive $20 (the original $10 bet plus $10 in winnings).

That's all there is to playing NCSU Bac.

Your program must do the following:

1.) Ask for the player's name

2.) Generate a file with the following information (the order of the information in the file is up to you):

a. Round Number

b. How much money the player has

c. Amount the player bet

d. Who did the player bet on?

e. "Player's" hand value

f. "Banker's" hand value

g. Which hand won? "Player" or "Banker"

h. How much did the player win

i. Sum of amount the player has won to this point

3.) Thus a sample of some of these values would be :

Hand # amt bet players value bankers value amt remaining

1 5 6 7 x-5

The game is quite simple, and played with a standard 52 count card deck. There are no jokers used. You will also have a standard starting amount of $1000.00 for the player to use during the game.

2 6 2 0 x+6

4. Your model and algorithm should also have a means to end the game. This could be done several ways which must include when the player has no more money, and then whatever else you decide such as after 50 rounds or  when the player has won double his starting amount.

Also, be sure to present the ending information to the user at the start of the game.

To do this program successfully you will need to call random numbers from the system, and understand how to model a card deck. Dr. Rodman's lecture notes on the subject should be used.


Related Discussions:- Algorithem for create game application

Basics question, I am building wpf application and i want to install this a...

I am building wpf application and i want to install this application on a server pc and share it to other pces on a net work , my question is i have static class that contain data

Shell script to display words of a file in ascending order, Normal 0 ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Program that takes names of 5 students in 2d character array, Write a progr...

Write a program that takes names of 5 students in 2D Character Array and their GPAs in 1D array. Arrange the names in alphabetical order and display on screen along with GPA.

Develop an application for airraid game, Extend the AirRaid game, so that t...

Extend the AirRaid game, so that the planes drop a bomb on the gun as they go over it. The gun has to move out of the way otherwise it will be destroyed if hit. Provide three lives

What are relative urls, What are Relative URLS ? When a web browser re...

What are Relative URLS ? When a web browser reads an HTML document, it has a great deal of information about the document. This includes the protocol used to retrieve the docu

Display files specified in directory in format, W.A.S.S to display all the ...

W.A.S.S to display all the files in a specified directory in the following format: File  size in K        Date   Protection    Owner Program echo -e "Enter dir : \c" read di

Write a program to draw a sketch of a cow, write a program to draw a cow. N...

write a program to draw a cow. Now, draw a cow standing amongst the grass, with (say) 500 blades of grass. Each blade of grass should be a separate random green line. Do all your d

Input output program, Problem Specification I/O programming is the \bre...

Problem Specification I/O programming is the \bread and butter", the raison d'etre, of microcontrollers. After all, our definition of a microcontroller is \a microprocessor wit

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd