Bohdan Stupak
Write a program that simulates Conway's game of life

The Rules
For a space that is ‘populated’:
Each cell with one or no neighbors dies, as if by solitude.
Each cell with four or more neighbors dies, as if by overpopulation.
Each cell with two or three neighbors survives.
For a space that is ‘empty’ or ‘unpopulated’
Each cell with three neighbors becomes populated.

Given 2-dimensional bool array of cells (false for ‘empty’ an true for ‘populated’) and number of game turns.

Expected output is 2-dimensional arrays of cells after given number of turns.

By Bohdan Stupak in C# on Jul 15 2020
  • Thad T.
    Dec, 2020 10

    I remember a particular website, of which I go back to for answers, that I have been burned, oh so many times like the question you are asking. Your question reminds me of being a school/education related assignment. When I was going to college to get an education, I had no Internet access, in otherwords, there was no Internet Period!! So if I had questions or needed help, I worked, did research, sat and scratched my head and re-evaluated my situation and went down different paths - so as to look at things in a different light. This process of which I speak of, reminds me a my compiler construction class - on building a compiler that works. In building that compiler, it was an individual project - that’s if you didn’t have any real friends. BUT I got mine done. Recently, I completed an individual project of developing software (in two parts)that does date conversions on the fly. And it works!!! In C++ / “C”.
    SO, in otherwords, get the lead out and start working on your project and don’t expect someone else to do it for you….. So show us some blood, sweat, and tears. It is like going thru the refiners fire. ENOUGH!!!

    • 0

Most Popular Job Functions