Share your repls and programming experiences

← Back to all posts
Highscore file system in python
LardBoi (37)

I promised to do this a while back but then I found out my c++ highscore file system (which this is based off of) is faulty when I was testing it so then I got a little disappointed. A couple of weeks pass and I'm thinking about the C++ one and fix it so now I finally studied up on my python again and here it is

DrAvery (15)

I think this would be much better with a json.dump() system worked into, that way you can put names, dates, scores, etc. and then read, print or do other things with that info. The way your script works now, is that it writes over the existing data.

Just a though/suggestion,
Dr. Avery

LardBoi (37)

@DrAvery not gonna lie, I would if I knew how to do all of those things. Which I'm sure with a bit of research I could get the basics of it. I'm just more of a hardware and C/C++ guy than scripting and python and JSON stuff.

DrAvery (15)

@LardBoi, Yeah, I completely respect that. I just like thinking about how things can be improved. :3

k4t3xpl0si0n (6) very cool

HarveyH (215)

Your repl doesn't work...

LardBoi (37)

@HarveyH It does for me I'm thinking it's the fact that my code is talking to a file and repl doesn't automatically create one if it doesn't exist like an OS would. Try clicking on open in in the top right corner. That seemed to make it work. Let me know if you're still having this issue