Develop a web site that simulates a casino craps game

Assignment Help Computer Engineering
Reference no: EM131943982

Assignment: Casino Game Site

Problem: Develop a Web site that simulates a casino craps game.

Use two web pages (php) to allow the user to play simple craps (dice). The first page should represent the first roll using functions to roll each dice (2). The first page reports on whether the player wins, loses or rolls again. Use a session cookie to record the roll value for the second page. On the second page, the user rolls again and you should report the win, loss or "roll again", until the user wins or loses. If the user wins or loses, report the result and close the page. Allow the user to keep rolling until the user wins or loses. Then allow the user to "reset" for a new game.

Your site should use functions and session cookies.

Simplified Rules of Casino Craps

1. To begin, the Shooter (one of the players) must bet at least the table minimum on either the Pass Line or the Don't Pass Line (sometimes called 'win' or 'right' bets and 'don't win' or 'wrong' bets).

2. The game is played in rounds, with the right to roll the dice by each player moving clockwise around the craps table at the end of each round. A player may choose not to roll but can continue to bet.

3. Each round has two phases: Come Out and Point. To start a round, the shooter makes one or more Come Out rolls. A Come Out roll of 2, 3 or 12 (called Craps, the shooter is said to 'crap out') ends the round with players losing their Pass Line bets. A Come Out roll of 7 or 11 (a Natural) results in a win for Pass Line bets. The shooter continues to make Come Out rolls until he rolls 4, 5, 6, 8, 9, or 10, which number becomes the Point. The dealer then moves an On button to the point number signifying the second phase of the round. If the shooter rolls the point number, the result is a win for bets on the Pass Line. If the shooter rolls a seven (a Seven-out), the pass line loses and the round ends.

Reference no: EM131943982

Questions Cloud

Create a diagram that illustrates how your program works : Create a UML activity diagram that illustrates how your program works. Your diagram must include all the data items in your program.
Company capital intensity ratio : Is the company’s“ capital intensity” ratio the same or different?
What occurrences can affect positive or negative outcomes : Compare and contrast Erikson's generativity versus stagnation stage with his ego integrity versus despair stage for middle and late adulthood.
List out two-three issues in the case : Case: Salesforce.com: Responsible Cloud Computing. List out two-three issues in the case. Explain the issues/talk about the issues.
Develop a web site that simulates a casino craps game : Develop a Web site that simulates a casino craps game. Use two web pages (php) to allow the user to play simple craps (dice).
Contrast feasible-efficient and optimal portfolios : Discuss the characteristics and compare and contrast feasible, efficient, and optimal portfolios.
Indicate the weak link in internal control : The procedures used for over-the-counter receipts are as follows. Indicate the weak link in internal control. How can the weakness be corrected?
Total asset turnover-equity multiplier-roa and roe : How will this change in accounts receivable policy affect Dakota’s net income, total asset turnover, equity multiplier, ROA, and ROE?
List the characteristics of effective design patterns : List the characteristics of effective design patterns. Define the terms design focus and granularity in the context of WebApp design patterns?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Assume that we compare the insertion sort method

assume that we compare the insertion sort method. while classification with merge requires 64n*lg(n) steps. For which values of n, does insertion sort method outclass the merge sort process.

  Question1 what three things most an attacker have and why

question1. what three things most an attacker have and why with reason?2. describe disparity between a vulnerability

  Determine how many comparisons are made

Determine how many comparisons are made, and thereby check the formula for the average number of comparisons for a successful search.

  Which data structure is the optimum one

When lots of inserts & deletes are involved. When you have no clue about how big the list would grow.

  What are the pros and cons of the approach

Using the World Wide Web, identify at least two potential sources of such software. What are the pros and cons of this approach to obtaining a software package?

  Give one huge advantage of using javascript

One huge advantage of using JavaScript is you can accept input from the visitors to your site. As a visitor adds information to your form, what would you do to control inappropriately entered values.

  Why was an adaptable network solution so critical to rmh

Why was an adaptable network solution so critical to RMH and What were the main components of the hospital's network?

  Calculate the approximate bit rate and signal level

Calculate the approximate bit rate and signal level(s) for a 4.2 MHz bandwidth system with a signal to noise ratio of 170. In a peer-to-peer (P2P) network, Internet users that are ready to share their resources become peers and form a network. Descr..

  Define how a form becomes a window

define how a form becomes a window within an application. Discuss the difference between a modal and modeless form. List an example of when you might want to use each kind.

  What does the term effective address mean and how is it used

The 68000 has addressing modes that are indicated by -(Ai) and (Ai) + in 68000 assemblers. What are they (i.e., what do they do)?

  Practice evaluating mobile interactions

How did your choices affect the outcome. How did this method of evaluation compare to the heuristic evaluation you did - what are the benefits of each one

  How cloud technology could align with the company

Create a workflow diagram to illustrate how analytics and cloud technology could align with the company's business processes. Note: The graphically depicted solution is not included in the required page length but must be included in the design docum..

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