Hi everyone!
I'm trying to make a game with a scoreboard and I've encountered a problem that I can't solve....
How to change (update by added points) the value of the key "score", in a player based on the value of the key "name" which is, for example, "Player 1"?
I have such a data structure:
This is how I add a player to the dictionary:
I know that I should first extract the current "score" value, and then add a new one to it and update it.
I have a problem with how to find the player by name - what to enter in "get value at key path"?
Or do I have the wrong data structure?
Could any of you help me find a solution?
Greetings and thanks in advance!