![]() |
|
[Python] Jumbl3d Game - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: [Python] Jumbl3d Game (/Thread-Python-Jumbl3d-Game) Pages:
1
2
|
[Python] Jumbl3d Game - Ex094 - 02-18-2013 Hey [username]! Here's a game I coded just for fun
![]() ![]() $FEATURES$ * Non Stop Word Guessing Game * Scoring is based on length of the word * Uses a word list * You can define your own list of words to guess * Coded using Python 3.3 Future Of Jumbl3d If I get time to make this game even better I'll be adding: * Score will be given according to the number of letters of a word guessed correctly * Will contain Multiplayer and SinglePlayer mode * Will make use of Database to store player statistics and display it online on my website highest number of words guessed correctly (Not Sure unless I get strong with Databases) Word List Instruction * Rename your wordlist file to words * Put it in the folder where Jumbl3d Executable is present * the words should be arrange in the following order like: Code: Exo94
Hackcommunity
Gigadev
Wordslist
Hacking
CommunityDownload Link: Code: http://www.mediafire.com/?445rnc45bjsfvc7If you want to run this game on Android follow this tutorial of H4R0015K http://www.hackcommunity.com/Thread-Run-Python-On-Your-Android Source Code will be released later... REPORT any errors that you encounter! Regards, Exo94 RE: [Python] Jumbl3d Game - H4R0015K - 02-24-2013 Jumbled cheater:Coded in python 2.7 whats Jumbled cheater? Quote:jumbled cheater will give you the correct word when you enter the jumbled word.make sure its in the same directory (of Jumbl3d Game) Code: def getwords():
file=open('words.txt','r')
words=file.read()
wordslist=words.split()
return wordslist
def checkword(text,wlist):
val=0
count=0
num=0
sorry='Word not found!'
while count != len(text):
if val==len(wlist):
return sorry
word=wlist[val]
for i in range(len(text)):
if text[i] in word:
count+=1
if len(word)!=len(text):
count=0
if count == len(text):
for i in range(len(word)):
if word[i] in text:
num+=1
else:
break
if num==len(word):
return word
else:
num=0
count=0
else:
count=0
val+=1
wordlist=getwords()
text=raw_input('Enter jumbled string : ')
print('Answer : '+checkword(text,wordlist))Running Screenshot:
RE: [Python] Jumbl3d Game - H4R0015K - 02-24-2013 Jumbled cheater:Coded in python 2.7 whats Jumbled cheater? Quote:jumbled cheater will give you the correct word when you enter the jumbled word.make sure its in the same directory (of Jumbl3d Game) Code: def getwords():
file=open('words.txt','r')
words=file.read()
wordslist=words.split()
return wordslist
def checkword(text,wlist):
val=0
count=0
num=0
sorry='Word not found!'
while count != len(text):
if val==len(wlist):
return sorry
word=wlist[val]
for i in range(len(text)):
if text[i] in word:
count+=1
if len(word)!=len(text):
count=0
if count == len(text):
for i in range(len(word)):
if word[i] in text:
num+=1
else:
break
if num==len(word):
return word
else:
num=0
count=0
else:
count=0
val+=1
wordlist=getwords()
text=raw_input('Enter jumbled string : ')
print('Answer : '+checkword(text,wordlist))Running Screenshot:
RE: [Python] Jumbl3d Game - Ex094 - 02-24-2013 Hahah nice work man man
RE: [Python] Jumbl3d Game - Ex094 - 02-24-2013 Hahah nice work man man
RE: [Python] Jumbl3d Game - Deque - 02-24-2013 That's quite funny, H4R0015K. Good hack. ![]() @Ex094: Nice game. RE: [Python] Jumbl3d Game - Deque - 02-24-2013 That's quite funny, H4R0015K. Good hack. ![]() @Ex094: Nice game. RE: [Python] Jumbl3d Game - Ex094 - 02-24-2013 (02-24-2013, 11:02 AM)Deque Wrote: @Ex094: Nice game.Thank you deque
RE: [Python] Jumbl3d Game - Ex094 - 02-24-2013 (02-24-2013, 11:02 AM)Deque Wrote: @Ex094: Nice game.Thank you deque
RE: [Python] Jumbl3d Game - H4R0015K - 02-24-2013 logo appears each time,that doesn't look good. |