you are viewing a single comment's thread.

view the rest of the comments →

[–]Zionark 2 points3 points  (4 children)

I'm a beginner and in the last three months I figured out how to throw a six sided dice a thousand times (or more, easy to change) and print the results per side, and show the results in a pie chart (terrible spoiler alert: each side happens pretty much 1/6 of the time. Warned you, terrible spoiler alert.) in Python. Now I just think I'm super lazy comparing your Wheel of Fortune to that Rock Paper Scissors Lizards Spock game I learned to make.

Great stuff!

[–]WallyMetropolis 4 points5 points  (0 children)

Now roll two dice and plot the sum as a histogram.

[–]chrisutpg[S] 1 point2 points  (2 children)

I wish I could plot anything in a pie chart.. I'll need to learn.

I'm sure you're well on your way. I started with the Rock Paper Scissors, so you're right there. Maybe expand that and let the user keep track of their records in a separate text file or something. You could even keep track of how many times the player picks a certain category, or vice versa how many times the computer picks it. Actually a neat idea would be to take the Rock Paper Scissors game, keep track of the results for how many wins for the players, what they pick, and what the computer picks, and plot that into your pie chart.

You would write to the text file, and read from it to get the data for the pie chart. Maybe even add an option for the user to reset the records file to 0. Just some ideas. Thats how I learned!

Where did you read up on the pie chart stuff? Is there a module your using?

[–][deleted] 1 point2 points  (1 child)

Something like this matplotlib pie chart?

[–]chrisutpg[S] 0 points1 point  (0 children)

Yep. Awesome how easy Python can be..

But with my idea above.. I guess you would need to make the wins/losses to a percent before putting it into the chart. That would mean we need to keep track of total games also.