So, you want someone to code the rest of your game, basically just the part with money, because when I tried playing it, it seems fine. We're not supposed to do your homework for you, so all I can do is help you. First, make a load function that tries to load money from the file, and if not gives them a set amount like below.
def loadData(): with open("playMoney.txt", "r") as saveFile: money = saveFile.read() if not money or money == 0: print("Renewing money") return #Default amount return moneyAll you need to do is make a money variable in the main function, use function arguments and returns to pass it back and forth between functions, whenever the player wins, give them money, else, take away some money, or on a tie, neither. Then when they quit or their money runs out, execute a save function that should look something like this.
def save(money): with open("playMoney.txt", "w") as saveFile: saveFile.write(money)It shouldn't take you too long to add this on to the game. I don't believe I made a mistake with the save and load functions, but if there's an error that you can't figure out just post about it on this question.