pygame is
Simple DirectMedia Layer is
Site Swing
Pygame Dice

Pygame Dice - 1.0

Arkapravo Bhaumik (arkapravobhaumik)



Version 1.0 , later versions will try for music and more appealing visuals.


Home Page:


click to view original size


Pygame Dice - 1.0 - Sep 29, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

October 3, 2009 1:46pm - Donkyhotay - nickname: (donkyhotay)
Actually I'm in USA, a lot of people here don't get the joke and think my nick has something to do with donkey's. I don't speak spanish but I really enjoy the story so I use the nick. I may take a look at your slot machine when (if) I have the time. As I mentioned though I have my own coding project ( I'm working on that takes up almost all of my meager spare time.
October 2, 2009 6:37pm - Arkapravo Bhaumik - nickname: (arkapravobhaumik)
Dude, you may try my slot-machine game ( ), it is based on similar principles ..... and will have the same problems ! :D ...

By the way, are you from Spain or South America ? ..... not everyone can make a pun on Cervantes !
October 1, 2009 4:22pm - Donkyhotay - nickname: (donkyhotay)
Lucky you to be able to have the option to test yourself, I do everything on linux (mostly ubuntu) and don't evern have a windows or osX based system for testing my own projects. I'm working on a project that I *know* worked with osX over 6 months ago and windowsXP over 3 months ago but haven't been able to do compatibility testing on either system since then. Even when I did test it the last time it was more of "can I borrow your computer buddy and make certain it launches up and looks normal in under 60 seconds" kind of thing then any real testing.
October 1, 2009 2:53pm - Arkapravo Bhaumik - nickname: (arkapravobhaumik)
Well... I began on Ubuntu (8.04) ....but since I could not develop the visuals in Ubuntu .... I moved to Wndows (XP) .... you see... I am not very good with GIMP ! :)
October 1, 2009 2:04pm - Donkyhotay - nickname: (donkyhotay)
No worries, I figured you coded/tested this completely on a windows system. It's a pretty common mistake to make on windows since it's different from everything else.
October 1, 2009 9:32am - Arkapravo Bhaumik - nickname: (arkapravobhaumik)
Hey Donkyhotay ! .... thanks for your comments and apologies if you had issues running the program in linux ..... my last modifications were done in windows(XP) hence the 'error' stayed .

As for adding the probabilities of 2 dice as 2 = 1+1 .... unfortunately it doesn't works like that ..... the probability in such scenarios are not additive .... a 'fresh' formulation has to be done for each die added .... thus this program cannot be carried along to include 3 or more die ... further the total outcomes in a single die is 6 while that in 2 dice is 36 .... which really changes everything ....even if I do keep 2 separate random functions for the 2 die .... then I would not be able to 'track' the way the die are behaving .... I may sound funny ...but then I have gone through these thoughts while designing it.

Please feel free to express anymore ideas/ positive criticism or e-mail me at .
September 30, 2009 7:03pm - Donkyhotay - nickname: (donkyhotay) - 2/5
An interesting prototype/experiment however there are some things that jump out at me. First of all the names of the files within the source code don't match the names of files, the source has it capitalized while the filenames aren't. Windows doesn't care about capitalization in filenames however *nix OS's (like my linux system) do make a distinction. Because of this the first time I ran it I got errors trying to open "1.PNG" when the name of the file is "1.png". Making the necessary modifications to the source code allowed me to run the program and it worked just fine. One other thing I don't under stand is why you have calculated out each possible permutation of the dice. Why don't you don't just have two random numbers 1-6 for each dice and then add them together rather then one random number 1-36 for each possible permutation? It would be much easier and more efficient.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Jan 31, 2017

Jan 24, 2017

Jan 19, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)