Hello all,
I am currently working on a project for class in which I am recreating the memory card game concentration, where you have to remember the locations of certain items and match them with the identical one.
The way I am doing this is having two lists, remainingSquares and remainingTextures. When spacebar is pressed for a new game, it distributes a random texture to each square. However, the problem I am having is repeats.
In my case, I am having two differently-named items that correspond, such as baseball-1 and baseball-2, that correspond and will match. baseball-1 can be distributed to ONE SQUARE ONLY, but since the squares are being given a random texture from the available textures list, I need a way to delete, permanently delete, an object from a list mid-game.
If anyone knows how to permanently delete an object(s) from a list while the program is running, it is much appreciated!