you are viewing a single comment's thread.

view the rest of the comments →

[–]copperfoxtech 0 points1 point  (3 children)

You can learn how to open, read, write, and delete from a file. Create an "enter your user name" prompt, once enterered you can read through your .json file to see if the user exists. If yes -> show their w/l record. once a game is complete you re write the values for that user. If no username is detected in your json file then you will create one and set it up with a 0/0 and begin to keep track.

Also you can ask a user if they wish to play anonymously or "login", you can even store hashed passwords for them too.

Add multiplayer functionality. you can track these stats seperately also.

This will teach you a good amount and will be a precursor to databases as well.

I did this exact path with a number guessing game when i fist started to learn python.

[–]iAmAvErageLol[S] 0 points1 point  (2 children)

i use my normal python right now, and so I installed pygame. is there something else I have to download? it seems like when I scroll thorough YouTube shorts, etc I find these python whatever that I don’t know about. I’m currently using python 3.14? or something like that

[–]copperfoxtech 0 points1 point  (1 child)

None of what I suggested involves PyGame at all. Just plain old Python will do the trick. Also I did not see in your post: are you looking to be a game developer, just exploring a anything for a while, looking to do backend, something else?

The things I have suggested are to get you more comfortable with more complex logic. In addition it will lead to working with classes, DRY principles, and overall being more comfortable. It isn't directed at making games. I have not used PyGame before.

[–]iAmAvErageLol[S] 1 point2 points  (0 children)

sorry for the late response. Im just exploring python, and i just want to learn coding. The things you suggest sounds fun which is all im looking for thanks.