How is the game played:
Roll two (2) dice 10 times.
Record the score for each roll and add it to the previous score to get the running score.
Display the running score
Display the running highest score (the highest score so far obtained)
After the 10th roll, display the max score, the min score and the total score.
How would you write your codes:
Since a dice goes from 1 to 6, a 2-dice system, will go from 2 to 12.
You can then take advantage of the random module to generate a number between 2 and 12 each time you roll the dice.
You can use a list to store your results; use Python's max and min and sum function to display the biggest, smallest and the total score.
Make some noise (beep!) each time you roll the dice and play the windows exit sound at the end of the game.
Python functions you can use:
You can use min(), max(), random(module),randrange(), list,winsound(module),Playsound()
Your interface:
Make sure to get the user's name so you can use it when you are displaying the total score.
Make sure to ask the user if he/she wants to play again; if the answer is yes restart the game if no, nicely exit the programs.
If the player score 100, congratulate the player and add him/her to the game "Hall of Fame"(another list).
Hi, I (Myself a senior PHP, ASP.NET programmer using C# and VB) have a team having experience of more than 10 years in developing web and mobile applications. I have a team of expert programmers who write robust and bug-free codes at the very first instance. After seeing our quality of work and the cooperation offered to you even after the work has been delivered to you, you’ll come to us again and again to avail our services. I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I can achieve the results that you are asking for within your timeframe and budget. I am confident I can exceed your expectations and I would love to work on your project. Thanks, Priyanka
Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself -
Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !!
Looking forward to hear from you soon - GOD Bless You.
Hello,
I have a good background coding in Python. I can implement a dice roll game, as per your description, in Python.
Questions:
- Is this Python 2 or Python 3 ?
- The game is text mode only or is it supposed to have a GUI ?
- Are you supposed to use any library (like PyGame) ?
Thanks and let me know if you are interested to work with me,
Paul
I'm programming in python since last 2 years and I'm great with handling algorithms, sounds etc.
I will do this work in few hours (3-4 max) and your work will be platform independent too (i.e. It can work on any platform like windows, mac, unix, linux etc).
I've been working for about 6 years in Python, and can get this done correctly for you in a short amount of time with plenty of comments in the source for how it works! Plus I can make sure to only use the functions you outlined.
*Edit* Just in case you hire me, I completed the game already so I'll send it to you right away!
Cheers,
- Joseph
Hello I assume you need a console application my bid is based on this assumption
if you would need a graphical interface I would need a other 50 and one day more to do the job.
Do you have any specific requirements about version I mean 2 or 3 no that it matters just wants to make sure I am in line with you
Working will be just like you mentioned however for hall of fame there will be a text file which will record top 10 highest score and on completion of the game would check with test file if score deserve to be in hall Of fame
thanks
raj