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); } }
public void Shuffle() { MatrixCalculations.Shuffle(state); }