Question
IN MATLAB PLEASE Final Project: Conways Game of Life The final project for ENRG-1800 is to create a working Conways Game of Life. This is
IN MATLAB PLEASE
Final Project: Conways Game of Life
The final project for ENRG-1800 is to create a working Conways Game of Life. This is a player-less game that will be executed by MATLAB. The level of complexity and features that are presented in this document are minimal requirements, but of course, you can add as much complexity as you prefer (some suggestions of additions are included at the bottom). In order to be considered a final project, the game must play and the code (script and or function(s)) must be properly annotated and be self sufficient (all the functions should either be built in functions in MATLAB or be included as part of the submission). Once you consider your project is ready, upload it to Blackboard under the assignment called Final Project.
Game setup: The game starts with a given configuration consisting on a logical matrix (suggested size is 100 x 100) where the 0 elements are known as dead cells and the 1 elements are known as live cells. The game should display this initial matrix as a figure.
REMEMBER MATLAB
Playing the game: The game continues by looping through a routine that calculates the matrix of the new generation according to the rules bellow and then displays the result as a figure. This routine should continue indefinitely or until a set pre-condition is reached (these are decisions for you, the game designer).
Rules of the game: In calculating the next generation, these rules should be followed: 1) If the cell is alive and in contact with 4 or more other live cells, it will be dead in the next generation, as if by starvation (local resources depletion). 2) If the cell is alive and in contact with less than 2 live cells, it will be dead in the next generation, as if by isolation (lack of enough cooperation to harness the local resources). 3) If a cell is dead and in contact with exactly 3 live cells, it will spawn into life in the next generation, as if by reproduction.
Ideas to Improve your game: 1) Allow the user to choose between different starts. 2) Allow the user to change the size of the playing field. 3) Allow the user to change the speed of the game. 4) Allow the user to change the color scheme of the game. 5) Make the game into a function so that the above values can be passed to the game. 6) Make a GUI for your game that allows in-game changes.
NOT UNITY, DO THIS IN MATLAB
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started