Read the file grid2.txt
and display the resulting grid. You should
recognize it if you've done it correctly. :-)
Build and show the grid saved in grid3.txt
reading lines from the file
one at a time.
Put your code from Exercise 2 in a function and test it out on grid1.txt
,
grid2.txt
, and grid3.txt
.
Use the glob
function to get a list
of all the "frame" files in the
animation
directory. Remember that glob
works just like ls
.
Use your function from Exercise 3, the list of files from Exercise 4, and
the .flash()
method to successively display each grid. It will make a short
animation when done correctly!