예제 #1
0
        public static void Main(string[] args)
        {
            var board  = new PegBoard();
            var solver = new PegBoardSolver(board);

            solver.Process();
        }
예제 #2
0
 public PegBoardSolver(PegBoard board, int winCap = DefaultWinCap)
 {
     this.random       = new Random();
     this.pegBoard     = board;
     this.wins         = new List <string>();
     this.maxWins      = winCap;
     this.stepsBuilder = new StringBuilder();
     this.winBuilder   = new StringBuilder();
     this.IsRunning    = false;
 }