So I am trying to code the Game of Life and I am having trouble trying to actually read the patterns from file, I am not sure how I would go about doing this. Right now I have it so that you have to manually input positions through scanner and that gets you the pattern you want. But I want to do it through plaintext and being able to read the pattern but I am just not sure how to do that. Some of the features I have is being able to put how many rows and columns you want the board to be and how many generations.
Aucun commentaire:
Enregistrer un commentaire