write program uses 20×20 board initialised given pattern play game conways life

Write a program that uses a 20×20 board, initialised to a given pattern, to play the game Conway’s life . After each turn print out the board pattern using a . for a dead square and a * for a live square. Squares off the board are considered permanently dead.