Show All the Letters That the Player Has Already Found

Accumulating found letters using collections

We only show one letter at a time, that is, the last one that the player has found. Understanding this behavior is rather simple. We simply assign a name to the proposed letter when it matches, and we use the same name each time, while simultaneously hiding the previous letter.

We need to accumulate all the found letters. We have what we call collections, which we can think of as bags in which we can add things.

Get hands-on with 1400+ tech skills courses.