示例#1
0
        private void CheckPegsOnBoard()
        {
            ObservableCollection <PegVM> answerPegs = new ObservableCollection <PegVM>();

            answerPegs = MasterMindEngine.MakeAnswer();
            PegsResult = MasterMindEngine.CompareAnswer();
        }
示例#2
0
        public MasterMindPageVM()
        {
            Pegs        = new ObservableCollection <PegVM>();
            PegsOnBoard = new ObservableCollection <PegVM>();


            MakePegs();
            MakePegsOnBoard();
            PegUCVM = new PegUCVM(Pegs, PegsOnBoard);

            MasterMindEngine = new MasterMindEngine(PegsOnBoard, PegsResult);


            CheckPegsCommand        = new RelayCommand(CheckPegs);
            CheckPegsOnBoardCommand = new RelayCommand(CheckPegsOnBoard);
        }