0

Is there a way a "quality" can be attributed to an object in an Array?

I'm trying to program a game where the code picks one country out of 196, and the user has to guess what it is. To help, I'm thinking of adding a "hint", where a sentence is shown in the output that is an important or well known fact about the chosen country. Is there any way that is possible?

1st Jun 2017, 5:53 PM
Jacob Braun
Jacob Braun - avatar
1 Answer
0
What about creating a 2nd array containing the hints? Once you have a country let's say the country has the index of 5 in the country array, you just use hints[5] and get the hint for the country of the country array.
1st Jun 2017, 9:30 PM
Domsu
Domsu - avatar