thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 16, 2017 14:23:59 GMT -6
i will email it. I started to think about seeing how to publish the finished product. and how to sell it.
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 16, 2017 14:35:17 GMT -6
i was trying to make a save game feature for a different game it pickles the name & the level number(soon). by appending it to a list but it just replaces the existing name so there is only one at a time. print(" Please type name of profile you wish to create") w=input('Name of profile here: ') wl=[''] wl.append(w) sf3=open("tmtd.dat", "wb") pickle.dump(wl, sf3) sf3.close() #and this to open it lf=open('tmtd.dat', 'rb') lgd=pickle.load(lf) print(lgd) #choose profile cp=input('type profile name') if cp in lgd: pass else: pass
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 17, 2017 16:16:33 GMT -6
never mind i fixed it
|
|
|
Post by spohnz on Jul 18, 2017 8:13:50 GMT -6
Hi Liam, Apologies, I was in round rock at the time of posting. Glad you got it fixed.
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 19, 2017 11:27:43 GMT -6
yeah its fine.sounds like fun.
|
|
|
Post by heimerdawg on Jul 19, 2017 11:53:47 GMT -6
If you have a paypal account you could make a website and put it there to sell.
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 19, 2017 14:40:39 GMT -6
what??
|
|
|
Post by heimerdawg on Jul 19, 2017 19:14:07 GMT -6
If you have a paypal account you can make a website, the connect your paypal to a download button. When they click the download button they have to pay, the your game downloads.
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 20, 2017 9:27:24 GMT -6
oh cool only problem is protecting actual code so they dont find it in there files and put it online. for free.
|
|
|
Post by heimerdawg on Jul 20, 2017 10:35:54 GMT -6
Encrypt it.
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 21, 2017 14:36:08 GMT -6
wish i knew how
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 21, 2017 14:38:11 GMT -6
fixed pickle problem
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 21, 2017 14:42:26 GMT -6
but now i seperated the files and import them as modules.
import time import pickle import sys import tmt_load_profile import tmt_typing_game #bunch of variables and functions print("welcome to typing with thepifanatic") print("Type 1 to create a profile") print("Type 2 to select a profile") selectioninput=input() if selectioninput == selectcreate: tmt_typing_game.typinggame() if selectioninput == selectselect: tmt_load_profile.psr()
but it doesnt let me choose it automaticaly starts a new profile and goes with select create.
|
|
|
Post by spohnz on Jul 21, 2017 19:08:00 GMT -6
From (module) import * will import all the functions without having to call them with the modName.function()
|
|
thepifanatic
New Member
pi is awsome people have calculated it past 1 million digits
Posts: 41
|
Post by thepifanatic on Jul 23, 2017 12:54:10 GMT -6
true i will try it hopefully they wont automaticaly start without input
|
|