2017-10-08 19:59:41 -05:00
|
|
|
using System;
|
2017-09-29 02:22:00 -05:00
|
|
|
using System.Collections.Generic;
|
2017-10-08 19:59:41 -05:00
|
|
|
using System.Globalization;
|
2017-09-29 02:22:00 -05:00
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2017-10-08 19:59:41 -05:00
|
|
|
using N_Space;
|
2017-09-29 02:22:00 -05:00
|
|
|
|
2017-10-08 19:59:41 -05:00
|
|
|
namespace Life{
|
2017-09-29 02:22:00 -05:00
|
|
|
class Program{
|
|
|
|
|
static void Main(string[] args){
|
2017-10-08 19:59:41 -05:00
|
|
|
Region game = new Region(2,10);
|
|
|
|
|
Console.WriteLine("This game of life has a max size of {0}, with a default state of {1}.", game.GetSize(), game.GetDefaultState());
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 0, 0 }, State.Green);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 3, 2 }, State.Blue);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 9, 0 }, State.Red);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 0, 1 }, State.Red);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 0, 2 }, State.Blue);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 5, 5 }, State.Red);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 9, 9 }, State.Blue);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 4, 4 }, State.Green);
|
|
|
|
|
game.AddInitialCoordinate(new int[] { 7, 6 }, State.Green);
|
|
|
|
|
game.PrintSpace();
|
2017-09-29 02:22:00 -05:00
|
|
|
}
|
|
|
|
|
}
|
2017-09-29 02:22:43 -05:00
|
|
|
}
|