Record the roll value for the second page

Assignment Help Computer Engineering
Reference no: EM132162986

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: EM132162986

Questions Cloud

Design the sites to control replication traffic : How would you create your sites and domains based upon the following specifications for the company citibase?
Write a sequence of mips code that implements : Use slt, beq, bne, and register $zero to write a sequence of MIPS code that implements the following branch instructions: ble, bgt, and bge.
Write a script file that finds the smallest even integer : Use a script file to write a script file that finds the smallest even integer that is divisible by 13 and 16 whose square root is greater than 120.
What is the probability that an hdtv will not work perfectly : Each component has a .005 probability of being defective. What is the probability that an HDTV will not work perfectly - What is the likelihood
Record the roll value for the second page : Use two web pages to allow the user to play simple craps .The first page should represent the first roll using functions to roll each dice (2).
Explain the role of ethics and social responsibility : Define and explain the role of ethics and social responsibility in developing a strategic plan while considering stakeholder needs and agendas.
How manufacturing and service companies can maximize : The purpose of this assignment is to help students understand how manufacturing and service companies can maximize their competitive advantage.
Discuss what types of information are stored in your sector : Discuss what types of information are stored in your sector (or sector of interest) and what types of information are shared with a third party (if any).
What are extras rights and remedies against mundo : In a minimum of a 1,000-word contract analysis, discuss the following questions: Was Mundo obligated to sell the presses to Extra for $2.4 million?

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