4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

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

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 upvotes $0.50

Replies (14)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: