public void FromTableau(Tableau tableau) { Initialize(); TableauInputOutput.FromTableau(tableau); Variation = Tableau.Variation; Algorithm.PrepareToPlay(); }
public void FromGame(Game other) { Initialize(); TableauInputOutput.FromTableau(other.Tableau); Variation = Tableau.Variation; Algorithm.PrepareToPlay(); }
public void FromAsciiString(string s) { Initialize(); TableauInputOutput.FromAsciiString(s); Variation = Tableau.Variation; Algorithm.PrepareToPlay(); }
public Game() { Seed = -1; TraceStartFinish = false; TraceDeals = false; TraceMoves = false; ComplexMoves = false; Diagnostics = false; Instance = -1; Shuffled = new Pile(); Tableau = new Tableau(); Candidates = new MoveList(); SupplementaryList = new MoveList(); RunFinder = new RunFinder(); FaceLists = new PileList[(int)Face.King + 2]; for (int i = 0; i < FaceLists.Length; i++) { FaceLists[i] = new PileList(); } Coefficients = null; TableauInputOutput = new TableauInputOutput(Tableau); MoveProcessor = new MoveProcessor(this); Variation = Variation.Spider4; AlgorithmType = AlgorithmType.Study; }
public Game() { Seed = -1; TraceStartFinish = false; TraceDeals = false; TraceMoves = false; ComplexMoves = false; Diagnostics = false; Instance = -1; Shuffled = new Pile(); Tableau = new Tableau(); Candidates = new MoveList(); SupplementaryList = new MoveList(); RunFinder = new RunFinder(); FaceLists = new PileList[(int)Face.King + 2]; for (int i = 0; i < FaceLists.Length; i++) { FaceLists[i] = new PileList(); } Coefficients = null; TableauInputOutput = new TableauInputOutput(Tableau); MoveProcessor = new MoveProcessor(this); Variation = Variation.Spider4; AlgorithmType = AlgorithmType.Study; }
public override string ToString() { return(TableauInputOutput.ToPrettyString()); }
public string ToPrettyString() { return(TableauInputOutput.ToPrettyString()); }
public string ToAsciiString() { return(TableauInputOutput.ToAsciiString()); }