tjferry14 / Cloud-Jump-2

Expanding on the original Cloud Jump.
7 stars 6 forks source link

Leaderboard #62

Open tjferry14 opened 10 years ago

tjferry14 commented 10 years ago

Access a leaderboard from the menu. Maybe eventually upload this to an online server and somehow display high scores total from everyone? Maybe using https://github.com/humberry/sftp-client. Just a thought.

cclauss commented 10 years ago

There is a start of a leaderboard ui. How should we make more exciting??

Upload and download to a server is easy IF you have the URL to a read/write server that we could use.

tjferry14 commented 10 years ago

I don't have a sever unfortunately, can I set it up through a personal website?

cclauss commented 10 years ago

Probably ;-) provide a URL and we will see.

tjferry14 commented 10 years ago

http://tferryapps.com

cclauss commented 10 years ago
with open(__file__) as self:
    source_code = self.read()
import requests
url = 'http://tferryapps.com/#contact'
payload = { 'Field1' : 'ccc has a new high score: 1079',
            'Field5' : 'ccc@pythonhackers.org',
            'Field3' : source_code }
r = requests.post(url, data=payload)
tjferry14 commented 10 years ago

@cclauss The only problems with this is that it doesn't detect wether the file is already made or not, but I can easily fix that. I ran this for a test but it didn't upload to the form.

cclauss commented 10 years ago

I tried a few more formulations.... Did any of them succeed in posting to the form?

If so, please paste the posts here.

tjferry14 commented 10 years ago

None succeeded.