Saving Games in Python
UmarQureshi4 (1)

Hiya!

So, I need help with a function in my game, Stormfront.

Basically, I need a simple way of saving my game using a specific keyword. Is there any answer to my question?

< Umar Qureshi >

You are viewing a single comment. View All
Answered by InvisibleOne (3261) [earned 5 cycles]
View Answer
ruiwenge2 (1784)

you mean like saving your scores?

UmarQureshi4 (1)

@ruiwenge2

No, saving your progress in the game - it's a simulation game.

ruiwenge2 (1784)

@UmarQureshi4 maybe you could use the replit database and ask the user their username, and when they're done, save their progess by assigning the key, username, to a value, their progress. you can see how to use the replit database at https://docs.replit.com/tutorials/11-using-the-replit-database