示例#1
0
        //maybe hold a list with all final operations- usefull for get next operation.
        public Strips(Board board)
        {
            this.board = board;

            var goalState = FindGoalStatePredicates();
            stack.Push(goalState);

            heuristics = new Heuristic();
        }
示例#2
0
        private void ResetButtonClick(object sender, EventArgs e)
        {
            this.pauseButton.Enabled = false;
            this.runButton.Enabled = false;
            this.nextStepButton.Enabled = false;
            this.createFurnitureButton.Enabled = true;
            this.operationsStack.Items.Clear();

            this.ClearCombos();

            board = Board.Instance;
            board.Reset();
            pause = false;
            stripsLogic = null;

            this.BuildBoard();
        }