Hooo boy was working with Map difficult.
I wish we would have spent a little more time explaining what was going on. I had to look for previous questions that were answered a while ago regarding it and use the unreal TMap section to get a better understanding.
I got part of my code working but I botched it at the end…
I didn’t think through that we had to set the value to true when it was entered (As it didn’t already exist) I realized after watching the lecture that we had to set each key value to be true so it knew it was already in the map so our loop would work.
Either way this was a very difficult section. I think the whole <char, bool> for the map needed a little more explanation.
Like I said I didn’t think that it was <key, value> because I didn’t really understand what a map was.
for those wondering at least to my limited understanding a map is essentially a list of data that has values.
So in our chase Char is the letter within the string Word. and its value is set to true when we see it.
So for say Happy it is doing value h = true value a = true value p = true value p already exists return false. (I may be wrong on this completely but that’s what i understand now.)
