示例#1
0
 public State(State parent = null)
 {
     if (parent != null)
     {
         state = new int[parent.state.GetLength(0), parent.state.GetLength(1)];
         Array.Copy(parent.state, state, state.Length);
         this.Parent = parent;
     }
     else
     {
         state = MatrixCalculations.GetMatrix(3, 3);
         MatrixCalculations.Shuffle(state);
     }
 }
示例#2
0
 public void Shuffle()
 {
     MatrixCalculations.Shuffle(state);
 }