/// <summary> /// Generates new world array base on set of rules /// </summary> /// <param name="nxDayRules">which rules should I use</param> /// <returns>new state of the world</returns> public int[,] getNextDay(NextDayRules nxDayRules) { switch (nxDayRules) { case NextDayRules.std: return(world); case NextDayRules.other: return(world); case NextDayRules.test: return(world); default: return(world); } }
/// <summary> /// Constructor /// </summary> /// <param name="nextDayRule">decide how next day will be generated</param> public NextDayCalc(NextDayRules nextDayRule) { this.nextDayRule = nextDayRule; }
//**********************************METHODS**********************************// /// <summary> /// Standard constructor /// </summary> public NextDayCalc() { this.nextDayRule = NextDayRules.Conway; }