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, 21.06.2019 22:30
What are compression artifacts? 1) visible defects in the picture caused by the nature of the compression algorithm. 2) numbers that tell a web server how much to compress a picture for faster transmission. 3) invisible defects in the picture preserved by lossless compression. 4) numbers that tell a photo editing program how much to compress a picture for faster transmission.
Answers: 3
question
Computers and Technology, 22.06.2019 01:00
How can a broadcast station be received through cable and satellite systems?
Answers: 1
question
Computers and Technology, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
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
Questions on the website: 13722367