![]() |
| ||
| Re: Projects for the Beginner Anyway, sometime back, I wrote a little and simple GUI application (using wPython) which I call the Jumbled Words game. This was my first step into wxPython. Not a serious project at all, but hey, a nice project for a Python newbie like me at that time. :) You can download it (Windows executable; setup/installer) from here: http://anurag.granularproject.org/20...ame-downloads/ Any suggestions to improve the code are welcome. :idea: The source code goes like: # Author: Anurag Bhandari | Contact: anurag.bhd@gmail.comEditor: Was moved to the main Python forum, to allow posting of improvements! |
| ||
| Re: Improve scrambled text game It would be cool if you could have a text file full of all of the words so the user could add their own. Your text file could look like this: Python:yothnp spam:apms This was the user could add their own and you could just import it to a dictionary at the start like: f = open("Words.txt") |
| ||
| Re: Improve scrambled text game I was thinking on the same lines, Paul. Thanks for the suggestion and the code. I'll implement this in the program as soon as I can and post an update here after that. :) |
| ||
| Re: Improve scrambled text game Nice game! Just a few cosmetic things, there is a lot of empty space, so I would set the height of the frame to 180, and also use a little color with: bkg.SetBackgroundColour('yellow') |
| ||
| Re: Improve scrambled text game Ok, cosmetics are in; I'll note them too. |
| ||
| Re: Improve scrambled text game You can also let Python do the jumbling of the words and create the dictionary of word:jumble pairs: # create a dictionary of random jumbled words for a game |
| ||
| Re: Improve scrambled text game Automatic jumbling seems like a really nice idea. I wanted to do that earlier also, but had no clue on how to begin. The module "random" seems an interesting lot to play with. :) |
| ||
| Re: Improve scrambled text game I think at one time you asked about module MD5 to send on a password, you might want to take a look at this post: http://www.daniweb.com/forums/post220840-56.html |
| ||
| Re: Improve scrambled text game Quote:
Quote:
So, I guess I can assume that md5 is not reversible, right? |
| ||
| Re: Improve scrambled text game An alternative to using a password to communicate with your friend is to send them a picture of your favorite pet and to use the sha128 digest of the picture as a key, together with a standard encryption algorithm (RSA or a better one). This way, only the people with your pet's picture can decipher your messages, which is quite secure I think. |
| All times are GMT -4. The time now is 10:27 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC