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

  Identify modules from cpan that can support a gui

Identify modules from CPAN that can support a graphical user interface (GUI), network protocol, and database adapters.

  What is multimedia and what is its importance

What is multimedia and what is its importance

  Is platos view of knowledge more closely aligned

Heraclitus concluded that everything is "becoming", or that everything is in a state of flux. Parmenides concluded reality is Being, one thing which is motionless, eternal etc. Compare their conclusions with the ideas of Plato in the divided line ..

  Write the function insertion_sort

Write the function insertion_sort(a) that takes an array of numbers and returns an array of the same values in nondecreasing order, without modifying a.

  How to adapt for large-scale transnational it projects

What aspects of your project communications planning would you adapt for large-scale transnational IT projects in that the project teams and other stakeholders are geographically dispersed (say in India, Canada, China and Brazil) and having differ..

  Calculate the differential input impedance

Calculate the differential input impedance - Calculate CMRR when the internal resistance of the current source is set to REE?

  What is the role of the tcp protocol

What is the role of the TCP protocol? What do we call a numeric designation corresponding to a particular high-level protocol?

  What is the windows server 2003 and windows xp

Habibi's IT department wants to install Office 2003 and certain proprietary applications at each location as efficiently as possible. IT wants the applications to automatically repair themselves if they get corrupted. What must be completed to mak..

  How many prefetches need to be outstanding

How many prefetches need to be outstanding

  How important protecting your online presence is growing

How important protecting your online presence (across all services you use) is growing in importance, both for you, personally, as well as professionally.

  Explain the steps you have taken to maintain and redesign

write a 200- to 300-word short-answer response to the followingdescribe the steps you have taken to maintain and

  Write down a c program that has a declaration in main()

Modify this restaurant() function to alter the address in message. usage the expression *menu rather than *(menu + i) to retrieve the correct element.

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