Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

Python Coding for a Three Dice Game with Flowchart and Code

Rating
-
Sold
-
Pages
7
Uploaded on
07-02-2021
Written in
2020/2021

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.

Show more Read less

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
Get access to the full document:

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

Get to know the seller
Seller avatar
haroonma

Get to know the seller

Seller avatar
haroonma hihujik
View profile
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
5 year
Number of followers
0
Documents
0
Last sold
3 months ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

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

Frequently asked questions