Welcome to the CS 106B Game of Life, a simulation of the lifecycle of a bacteria colony. Cells (X) live and die by the following rules: - A cell with 1 or fewer neighbors dies. - Locations with 2 neighbors remain stable. - Locations with 3 neighbors will create life. - A cell with 4 or more neighbors dies. Grid input file name? badfilenamelol Unable to open that file. Try again. Grid input file name? anotherbadname.txt Unable to open that file. Try again. Grid input file name? snowflake.txt Should the simulation wrap around the grid (y/n)? n ------------------------------- ------------------------------- ------------------------------- -----------XXX---XXX----------- ------------------------------- ---------X----X-X----X--------- ---------X----X-X----X--------- ---------X----X-X----X--------- -----------XXX---XXX----------- ------------------------------- -----------XXX---XXX----------- ---------X----X-X----X--------- ---------X----X-X----X--------- ---------X----X-X----X--------- ------------------------------- -----------XXX---XXX----------- ------------------------------- ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? t ------------------------------- ------------------------------- ------------X-----X------------ ------------X-----X------------ ------------XX---XX------------ ------------------------------- --------XXX--XX-XX--XXX-------- ----------X-X-X-X-X-X---------- ------------XX---XX------------ ------------------------------- ------------XX---XX------------ ----------X-X-X-X-X-X---------- --------XXX--XX-XX--XXX-------- ------------------------------- ------------XX---XX------------ ------------X-----X------------ ------------X-----X------------ ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? t ------------------------------- ------------------------------- ------------------------------- -----------XX-----XX----------- ------------XX---XX------------ ---------X--X-X-X-X--X--------- ---------XXX-XX-XX-XXX--------- ----------X-X-X-X-X-X---------- -----------XXX---XXX----------- ------------------------------- -----------XXX---XXX----------- ----------X-X-X-X-X-X---------- ---------XXX-XX-XX-XXX--------- ---------X--X-X-X-X--X--------- ------------XX---XX------------ -----------XX-----XX----------- ------------------------------- ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? x Invalid choice; please try again. a)nimate, t)ick, q)uit? abc Invalid choice; please try again. a)nimate, t)ick, q)uit? ABC Invalid choice; please try again. a)nimate, t)ick, q)uit? t ------------------------------- ------------------------------- ------------------------------- -----------XXX---XXX----------- ------------------------------- ---------X----X-X----X--------- ---------X----X-X----X--------- ---------X----X-X----X--------- -----------XXX---XXX----------- ------------------------------- -----------XXX---XXX----------- ---------X----X-X----X--------- ---------X----X-X----X--------- ---------X----X-X----X--------- ------------------------------- -----------XXX---XXX----------- ------------------------------- ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? t ------------------------------- ------------------------------- ------------X-----X------------ ------------X-----X------------ ------------XX---XX------------ ------------------------------- --------XXX--XX-XX--XXX-------- ----------X-X-X-X-X-X---------- ------------XX---XX------------ ------------------------------- ------------XX---XX------------ ----------X-X-X-X-X-X---------- --------XXX--XX-XX--XXX-------- ------------------------------- ------------XX---XX------------ ------------X-----X------------ ------------X-----X------------ ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? t ------------------------------- ------------------------------- ------------------------------- -----------XX-----XX----------- ------------XX---XX------------ ---------X--X-X-X-X--X--------- ---------XXX-XX-XX-XXX--------- ----------X-X-X-X-X-X---------- -----------XXX---XXX----------- ------------------------------- -----------XXX---XXX----------- ----------X-X-X-X-X-X---------- ---------XXX-XX-XX-XXX--------- ---------X--X-X-X-X--X--------- ------------XX---XX------------ -----------XX-----XX----------- ------------------------------- ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? t ------------------------------- ------------------------------- ------------------------------- -----------XXX---XXX----------- ------------------------------- ---------X----X-X----X--------- ---------X----X-X----X--------- ---------X----X-X----X--------- -----------XXX---XXX----------- ------------------------------- -----------XXX---XXX----------- ---------X----X-X----X--------- ---------X----X-X----X--------- ---------X----X-X----X--------- ------------------------------- -----------XXX---XXX----------- ------------------------------- ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? t ------------------------------- ------------------------------- ------------X-----X------------ ------------X-----X------------ ------------XX---XX------------ ------------------------------- --------XXX--XX-XX--XXX-------- ----------X-X-X-X-X-X---------- ------------XX---XX------------ ------------------------------- ------------XX---XX------------ ----------X-X-X-X-X-X---------- --------XXX--XX-XX--XXX-------- ------------------------------- ------------XX---XX------------ ------------X-----X------------ ------------X-----X------------ ------------------------------- ------------------------------- ------------------------------- a)nimate, t)ick, q)uit? q Have a nice Life!