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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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