Programming Inquiry - Best way to store a win/loss/draw record

2021-02-09T21:10:48
Hi All,
Hoping someone out there would know the answer to this!
Trying to store a .json file for my splinterlands bot and started to capture playable hands as follows. When trying to do a record like concept "record" : [0,0,0], is the current way I'm storing the value. Is this the best method or am I better suited to have wins, losses and ties all separate?
{
"mana": 34,
"splinter": "Fire",
"ruleset1": "Standard",
"ruleset2": "None",
"summoner": 167,
"position1": 157,
"position2": 158,
"position3": 0,
"position4": 0,
"position5": 0,
"position6": 0,
"record" : [0,0,0],
"winperc": 0,
"recordvsfire": [0,0,0],
"recordvswater": [0,0,0],
"recordvsearth": [0,0,0],
"recordvslife": [0,0,0],
"recordvsdeath": [0,0,0],
"recordvsdragon": [0,0,0]
},
Thanks,
Fitz
14
14
1.01
14 Replies