Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Paython task:(Python only) In this assignment you will be programming a simulation known as Conways Game of Life. As shown in Fig. 1, the simulation

Paython task:(Python only)

In this assignment you will be programming a simulation known as Conways Game of Life. As shown in Fig. 1, the simulation consists of a world defined by an N M pixel grid. In this world, pixels represent cells that can take on one of two different states: living cells are drawn as black pixels and dead cells are drawn as white pixels. The state of each cell within the world may change as the simulation runs forward in time. We determine if a particular cell will be alive or dead in the next frame by examining the current frame and applying an update rule. In Conways Game of Life, this update rule consists of inspecting the state of the eight cells immediately surrounding the cell being updated. Living cells with too many neighbors die due to starvation, living cells with too few neighbors die due to under population, and dead cells with neither too many nor too few neighbors come to life as a result of reproduction within a hospitable environment.

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

The Big Idea In this assignment you will be programming a simulation known as Conway's Game of Life. As shown in Fig. 1, the simulation consists of a world defined by an Nx M pixel grid. In this world, pixels represent cells that can take on one of two different states: living cells are drawn as black pixels and dead cells are drawn as white pixels. The state of We determine if a particular cell will be alive or dead in the next frame by examining the current frame and applying an update rule. In Conway's Game of Life, this update rule consists of inspecting the state of the eight cells immediately surrounding the cell being updated. Living cells with too many neighbors die due to starvation, living cells with too few neighbors die due to under population, and dead cells with neither too many nor too few neighbors come to life as a result of reproduction within a hospitable environment ach cell within the world may change as the simulation runs forward in time. (a) Frame n (b) Frame n 1 (c) Frame n 2 Figure 1: Three frames from a running simulation of Conway's Game of Life. Each pixel represents a living cell (black) or a dead cell (white). The number of living cells immediately adjacent to a cell determines if it is alive or dead in the next frame of the simulation. Each cell has eight immediately adjacent neighbors. The particular pattern shown here oscillates between two states These simple biologically inspired rules for determining if a single cell should be alive or dead lead to some pretty astounding results when simulated. You will notice that certain stable and oscillatory stable patterns that tend to behave like cellular organisms emerge from the chaos The process of building a world grid, implementing an update rule, and managing boundary conditions are all fundamental elements of designing and implementing a broad class of computer simulations you will encounter within engineering. This project will expose you to these concepts and their implementation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions