CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
/*RULES
* 1. Less than 2 alive -> die
* 2. 2 or 3 alive -> keep living
* 3. More than 3 live -> die
* 4. DEAD and EXACTLY 3 live neigh -> reborn
*/
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
//FUNCTIONS************************************************************************//
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run