• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 2 out of 7 pages
Other

Python Coding for a Three Dice Game with Flowchart and Code

Document preview thumbnail
Preview 2 out of 7 pages

This is a presentation with a flowchart and code for a python three dice game. In this game I coded, there are three dice played, when they all match you score top points, less if only two match and you lose points if none of them match.

Content preview

3 Dice Game


This code is for a game that rolls
three dice.
If all three show the same
number you score 10 points and
if its just two you score 5 points
otherwise you lose 2 points.

, Flowchart
Start 3 X Terminate
Matches
?
Y

ROLL DICE Y = Continue
X = Terminate




3 Yes
Matches Mark + 5
? Refresh Page

No

2 Yes Mark + 3
Matches
?



No
Mark - 2
Display
Current
Mark

Document information

Uploaded on
February 7, 2021
File latest updated on
February 7, 2021
Number of pages
7
Written in
2020/2021
Type
Other
Person
Unknown
£3.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
0
Items
0
Last sold
11 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions