Algorithem for create game application, Programming Languages

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.

Posted Date: 2/18/2013 5:19:44 AM | Location : United States







Related Discussions:- Algorithem for create game application, Assignment Help, Ask Question on Algorithem for create game application, Get Answer, Expert's Help, Algorithem for create game application Discussions

Write discussion on Algorithem for create game application
Your posts are moderated
Related Questions
Select two different architecture styles to design and implement a software system and provide its Architecture Diagrams (implement the software with java)

Write a program that draws the initials J G P on the form similar to that shown in Fig J 1 (using straight lines and curve semicircles). The figure can not have corners. All ends a

Write a program that can facilitate searching by indexing text files according to words. In this task, you are given a large text file, sample.txt, which you will need to index the

How does a program provide "input" to one of its functions?

Define the Parameter Passing Mechanism - Computer Programming? The Parameters are syntactically identifiers and they are used within the body of the function and sometimes the

Determine the address accessed by each of the following instruction if DS=1100H, BX=0200H, LIST=0250H AND SI=0500H-: 1) MOV LIST[SI],EDX?0250+0500+11000=11750 2

Improved Support for JavaScript Debugging ASP.NET has many benefits over vintage ASP in the place of debugging. You can now quickly debug your server-side value using the complete

Architecture and Components The .NET Framework 3.5 The .NET Structure (pronounced dot net) is an application framework that works generally on Enthusiasm Microsoft windows. It has

Objectives: Create an applet, Use methods from the Graphics class , Use the Color class General Instructions: The java class that need to be imported into this assignm

How Can I Retrive Unicode CSV File the ADO.net VB.net