Esempio n. 1
0
        /// <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);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="nextDayRule">decide how next day will be generated</param>
 public NextDayCalc(NextDayRules nextDayRule)
 {
     this.nextDayRule = nextDayRule;
 }
Esempio n. 3
0
 //**********************************METHODS**********************************//
 /// <summary>
 /// Standard constructor
 /// </summary>
 public NextDayCalc()
 {
     this.nextDayRule = NextDayRules.Conway;
 }