Json Files - Coding Guidelines
Posted: 06 June 2020, 21:21
Where would I put json files in my project? In the root or in the modules folder?
I am writing cribbage and hopefully I will allow for different board designs, therefore, I want to put the board zone positions in a json file so I can write the following pseudo code
loadJson(this.boardName)
for i=0 to 120
player_1_i style Left:jsonVal Top:jsonVal
this.array1 = createzone(player_1_i);
player_2_i style Left:jsonVal Top:jsonVal
this.array1 = createzone(player_2_i);
Then the better questions is: do I need to make zones or can I just absolutely position my marker -- what would zones really offer
I am writing cribbage and hopefully I will allow for different board designs, therefore, I want to put the board zone positions in a json file so I can write the following pseudo code
loadJson(this.boardName)
for i=0 to 120
player_1_i style Left:jsonVal Top:jsonVal
this.array1 = createzone(player_1_i);
player_2_i style Left:jsonVal Top:jsonVal
this.array1 = createzone(player_2_i);
Then the better questions is: do I need to make zones or can I just absolutely position my marker -- what would zones really offer