Afternoon all, and Happy Easter!
I'm still working on my 'mini' word game, and would like some advice on the following. I have an array of 30 elements, each of which can contain a letter. So, if the player has picked the following letters:
B L I T Z
The array would be:
1-B
2-L
3-I
4-T
5-Z
6 to 30-""
How could I then take this, and then 'concatenate' the values into a variable, so, instead of the individual elements, I'd have:
WORD="BLITZ"
I can then check this against a dictionary I have to see if it is a valid word... ;)
Many thanks,
M
I'm still working on my 'mini' word game, and would like some advice on the following. I have an array of 30 elements, each of which can contain a letter. So, if the player has picked the following letters:
B L I T Z
The array would be:
1-B
2-L
3-I
4-T
5-Z
6 to 30-""
How could I then take this, and then 'concatenate' the values into a variable, so, instead of the individual elements, I'd have:
WORD="BLITZ"
I can then check this against a dictionary I have to see if it is a valid word... ;)
Many thanks,
M