I'm currently creating a Cluedo game and I'm editing the playerpiece class, I have also created a json file called data.json
to store data about the playerpiece, for instance: Character (e.g Colonel Mustard), Weapon etc.
{
"PlayerPieces": {
"0": "Col Mustard",
"1": "Prof Plum",
"2": "Rev Green",
"3": "Mrs Peacock",
"4": "Miss Scarlett",
"5": "Mrs White"
},
"Weapons": {
"0": "Dagger",
"1": "Candlestick" ,
"2": "Revolver",
"3": "Rope",
"4": "Lead Piping",
"5": "Spanner"
}
}
At the moment, I'm trying to figure out how I can create an arraylist of all possible instances of the PlayerPieces
, any help on how to get started would be greatly, greatly appreciated!