In this chapter, we created a Town structure and a myTown instance of that structure. After going through the chapter and the challenges, if I add a statement at the very end of myTown.printDescription() there is no change to the description from the very beginning, even after all the zombie/vampire terrorizing and thrall making!
Is this because each time a monster is given a town to terrorize, it is actually creating a copy of the original instance of myTown?
If that is the case, if we made Town a class rather than a structure, would it solve this problem? So that the zombies and thralls would be terrorizing the same town?
I’m trying to wrap my head around why these statements don’t make a difference to mytown.printDescription():
print(“There are now (vicTheVampire.thralls.count) thralls!”)