The basics behind shuffling the tiles is to shuffle the array of tile values, that tileArray which will be used to assign each tile its own value. There… Continue reading
Tag: array
Once we have selected two tiles, then selectedArray has two elements, and we have to check for their values. We will remove the tiles if values match, or… Continue reading
As said, not only we have to let the player select only two tiles, but we also have to prevent the same tile from being selected twice. A… Continue reading
Before we continue interacting with tiles and buttons, we have to store somewhere all tile values. And above all, assign each tile a value which will represent its… Continue reading