public FlippedRuleMatrix(IRulesMatrix matrix)
 {
     this.matrix = RulesMatrix.MakeRulesMatrix(
         matrix
         .Reverse()
         .Select(a => a.Reverse().ToList())
         .ToList()
         );
 }
Ejemplo n.º 2
0
 private Board(IRulesMatrix topRules, IRulesMatrix leftRules)
 {
     this.TopRules  = topRules;
     this.LeftRules = leftRules;
     this.Matrix    = new CellState[topRules.NumberOfRules, leftRules.NumberOfRules];
 }
Ejemplo n.º 3
0
 private Board(IRulesMatrix topRules, IRulesMatrix leftRules, CellState[,] matrix)
 {
     this.TopRules  = topRules;
     this.LeftRules = leftRules;
     this.Matrix    = matrix;
 }