Answer to Question #14533 in C# for Cissy

Question #14533
I have homework assignment in C#
Create a console application that implements a simple cellular automaton called the Game of Life
Requirements:
 Implement the grid as a 2-dimensional int array with 25 rows and 40 columns.
 At the beginning all cells are dead except for a continuous horizontal block of 13 living cells in the 14th row ( row index 13, column index 14 – 26 inclusive) and for 3 short vertical blocks (column index 12, 20, and 28, row index 8 - 10 inclusive) Tip: It might be easier to read and write if you only declare the grid as a field but initialize it with a private method from the constructor. This method would create a new 2-dimensional array of the appropriate size with the default initialization 0 (dead), set the cells specified above to 1 (living), and use it to initialize the field (i.e. assign it to the grid)
Display the initial cells until the user presses enter Display a message below the grid that informs the user that he needs to press enter to start the game
 Use different Use different colors for living cells and dead cells
You can choose whether you want to use colors for foreground, background, or both. Just make sure that living cells are easily distinguishable from dead cells
 Update the cells in their place Position the cursor to draw at the right locationAllow the user to stop the game by pressing a key. Change the original message to informs the user about this option
 Set the height and width of the Console window so that your grid is approximately centered Tip: the class Console has a static method called SetWindowSize
 A main part of this assignment is figuring out how to update the individual cells. Break up this task into sub-tasks. Use private methods with clearly defined responsibilities and descriptive names to perform these sub-tasks.
1
Expert's answer
2012-09-11T09:07:41-0400

Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS