Resulting number on each die will be generated randomly

Assignment Help Business Management
Reference no: EM132162267

Question 1: Yat (a much simplified version of Yahtzee)

"" module to generate a random number between 1 and 10. You can read about the random module in the Python documentation. The way you will use it is something like random.randint(a, b). 

The user will decide which of the values they want to keep out of the current roll. For instance if the current roll is (2, 3, 2, 1, 6), the user may specify that they wish to keep the 2's. In this case, in the dice that do not contain the value 2 will be rolled again.   If the player does not have 5 of a kind after 4 rolls, inform them that they have lost the game and ask if they would like to play again. If they have 5 of a kind, inform them that they have won the game.  Remember, the user may change their mind as to which values to keep so it shouldn't be assumed that they are trying for the same value for all 4 rolls. At each roll, your program should show the current value of each die. For instance, your program might look like this:

Hi, welcome to Yat!  

Your first roll is:  5, 6, 1, 5, 5

Which value you would like to keep? 

5

Your second roll is: 5, 5, 6, 5, 5

Which value would you like to keep?

5

Your third roll is: 5, 5, 5, 5, 5

You WIN!

Would you like to play again? Please enter Y (yes) or N (no) etc...

Reference no: EM132162267

Questions Cloud

How can an organization protect itself : How can an organization protect itself from Port Scanning and when can it do so? When is it not possible?
Provide examples of three value-added support strategies : Provide examples of three value-added support strategies geared toward helping a nursing home to implement a goal.
How to conduct an investigation : You are a corporate compliance officer for a hospital. You are also a feature writer for The Medical Reporter, an online health magazine.
Explore opposing leadership styles found in managers : In a 1-page paper, elaborate on two leaders: one which you determine as effective and the other as an ineffective leader.
Resulting number on each die will be generated randomly : You will roll 5 dice with the goal of getting 5 of a kind within 4 rolls. The resulting number on each die will be generated randomly. You can use the "random
Determine a quarterly rate of return : At the end of one year, the student group resold the machine for $50. Determine the quarterly cash flow. Then determine a quarterly rate of return
Returns a list of the index positions : The function that takes as input a string and returns a list of the index positions of all the vowels in the word. A vowel is defined as any letter in "aeiouAE
The similarities of an effective and ineffective leader : Consider this practice for the assignment as you discuss the similarities and differences of an effective leader and an ineffective leader.
What rate of return did the businessmen obtain : A group of businessmen formed a partnership to buy and race an Indianapolis-type racing car. What rate of return did the businessmen obtain from their racing

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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