So, I am writing a program which reads inputs from a text file. The prgoram plants a plant at (x,y) location which is read from a file as PLANT 3,4 for example. It also puts the plant in flames from command FLAME 3,4. So, there will be multiple plants and fire in the end. There can also be fire even if a plant is not there. And when does it outputs an image on the screen. I m thinking of using linked list to store plants and flame's location. Would i need to create 2 linked lists or could it be done with 1 linked list? I am not sure. I think I need to use 1 linked list, cuz i have to iterate through to create a image, which will be at correct coordinates as it was specified by a tester. Any suggestions/ ideas?
Thanks