subject

Conway's game of life

now that we have a working evolve function, we can carry out longer-term simulations of the game of life. (if you haven't gotten evolve to work yet, we provide it for this step.)

consider a wrapper loop that will simulate a glider traveling for nt time steps:

import numpy as np
import matplotlib. pyplot as plt

glider = np. zeros( ( 24,24 ) )
glider[ 10,10 ] = 1
glider[ 11,10 ] = 1
glider[ 12,10 ] = 1
glider[ 12,11 ] = 1
glider[ 11,12 ] = 1

nt = 10
for t in range( nt ):
cells = evolve( cells )
plt. imshow( cells )
plt. show()
write a program which implements a loop evolving pentadecathlon for thirty time steps. you should implement a list of ndarrays named pd_list, each containing a single generation of pentadecathlon's evolution.

pentadecathlon = np. zeros( ( 24,24 ) )
pentadecathlon[ 10: 20,10 ] = 1
pentadecathlon[ 12, 9 ] = 1
pentadecathlon[ 12,10 ] = 0
pentadecathlon[ 12,11 ] = 1
pentadecathlon[ 17, 9 ] = 1
pentadecathlon[ 17,10 ] = 0
pentadecathlon[ 17,11 ] = 1
your submission for this part should include the list of ndarrays named pd_list. if you wish to see the results at each time step, move plt. show() into the loop.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
You know the right answer?
Conway's game of life

now that we have a working evolve function, we can carry out longe...
Questions
question
Mathematics, 30.07.2021 17:50
question
Chemistry, 30.07.2021 17:50
question
Mathematics, 30.07.2021 17:50