fitz1567 avatar

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

fitz1567

Published: 09 Feb 2021 › Updated: 09 Feb 2021Programming Inquiry - Best way to store a win/loss/draw record

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

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

Written by

Read more #coding posts


Best Posts From fitz1567

We have not curated any of fitz1567's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From fitz1567