# Overview

___ _ _ _ _ ___ ___ ___ _____ ______

/ _ | | || | | / _ | / ||_ _|| ___

/ /_| | || | |/ /_\ \| . . | | | | |_/ / | _ || .  || .  || _ || |\/| | | | | / | | | || |\ || |\ || | | || | | | _| |_ | |\ \ \_| |_/\_| _/_| _/_| |_/\_| |_/ \___/ \_| _|

P R E S E N T :

____ _ _ ____

(_ _) )( ( __)
)( ) __ () _)

(__)_)(_(____) _ _____ _______ _______

| (_____)(_______)(_______)
| _ _____ _____
| | | | ___) | ___)
|_____ _| |_ | | | |_____

|_______)(_____)|_| |_______)

## The Life

Converts a text file to the game board using the supplied converter. On the next board each black cell (#) on the board "survives" only if it has exactly three neighbours. A new cell is born on a white cell (space) if it has three neighbors. Press Enter to go to next generation. The game ends when no more cells are born or die.

Usage:

python game_of_life.py <board file>


For example:

python game_of_life.py board.txt


### Expected File Formats

#### Input Files

The text file must end with the .txt extension.

• The first and last lines are the frame of the board, they begin and end with + and inbetween have -.
• Each line begins and ends with |.
• space is for dead cells.
• # is for live cells.

Example:

+-----+
| ##  |
| ### |
|#  # |
+-----+


#### Sample first Output

+-----+
| ##  |
| ### |
|#  # |
+-----+


#### Sample Output after Enter

+-----+
| ### |
|#    |
|     |
+-----+