Example #1
0
 public static void SetAroundCells(this MooreLifeGameCell centerCell,
                                   MooreLifeGameCell rightCell, MooreLifeGameCell lowerRightCell, MooreLifeGameCell lowerCell, MooreLifeGameCell lowerLeftCell)
 {
     centerCell.JointRight(rightCell);
     centerCell.JointLowerRight(lowerRightCell);
     centerCell.JointLower(lowerCell);
     centerCell.JointLowerLeft(lowerLeftCell);
 }
Example #2
0
 public static void JointLower(this MooreLifeGameCell upperCell, MooreLifeGameCell lowerCell)
 {
     upperCell.Lower = lowerCell;
     lowerCell.Upper = upperCell;
 }
Example #3
0
 public static void JointLowerLeft(this MooreLifeGameCell upperRightCell, MooreLifeGameCell lowerLeftCell)
 {
     upperRightCell.LowerLeft = lowerLeftCell;
     lowerLeftCell.UpperRight = upperRightCell;
 }
Example #4
0
 public static void JointRight(this MooreLifeGameCell leftCell, MooreLifeGameCell rightCell)
 {
     leftCell.Right = rightCell;
     rightCell.Left = leftCell;
 }