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? glider.txt
----------------------
---X------------------
-X-X------------------
--XX------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
a)nimate, t)ick, q)uit? a
How many frames? huh
Illegal integer format. Try again.
How many frames? x
Illegal integer format. Try again.
How many frames? 5
==================== (console cleared) ====================
----------------------
--X-------------------
---XX-----------------
--XX------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
---X------------------
----X-----------------
--XXX-----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
--X-X-----------------
---XX-----------------
---X------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----X-----------------
--X-X-----------------
---XX-----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
---X------------------
----XX----------------
---XX-----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
a)nimate, t)ick, q)uit? t
----------------------
----------------------
----X-----------------
-----X----------------
---XXX----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
a)nimate, t)ick, q)uit? t
----------------------
----------------------
----------------------
---X-X----------------
----XX----------------
----X-----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
a)nimate, t)ick, q)uit? a
How many frames? 20
==================== (console cleared) ====================
----------------------
----------------------
----------------------
-----X----------------
---X-X----------------
----XX----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----X-----------------
-----XX---------------
----XX----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
-----X----------------
------X---------------
----XXX---------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----X-X---------------
-----XX---------------
-----X----------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
------X---------------
----X-X---------------
-----XX---------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
-----X----------------
------XX--------------
-----XX---------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
------X---------------
-------X--------------
-----XXX--------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
-----X-X--------------
------XX--------------
------X---------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
-------X--------------
-----X-X--------------
------XX--------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
------X---------------
-------XX-------------
------XX--------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
-------X--------------
--------X-------------
------XXX-------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
------X-X-------------
-------XX-------------
-------X--------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
--------X-------------
------X-X-------------
-------XX-------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
-------X--------------
--------XX------------
-------XX-------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
--------X-------------
---------X------------
-------XXX------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
-------X-X------------
--------XX------------
--------X-------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
---------X------------
-------X-X------------
--------XX------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
--------X-------------
---------XX-----------
--------XX------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
---------X------------
----------X-----------
--------XXX-----------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
==================== (console cleared) ====================
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
--------X-X-----------
---------XX-----------
---------X------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
a)nimate, t)ick, q)uit? t
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------X-----------
--------X-X-----------
---------XX-----------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
a)nimate, t)ick, q)uit? q
Have a nice Life!
