layout using some random image and Glide library.
Now, I need help in implementation of the logic ?
How should I start that ?
all the images are in pair, so initially make the layout randomly (by choosing the positions randomly). Now save the positions of pairs as position[i] = j, position[j] = i. After choosing two tiles i and j, check if position[i] = j or position [j] = i. If it is mark these positions flipped, else hide these tiles.
Обсуждают сегодня