private void CheckPegsOnBoard() { ObservableCollection <PegVM> answerPegs = new ObservableCollection <PegVM>(); answerPegs = MasterMindEngine.MakeAnswer(); PegsResult = MasterMindEngine.CompareAnswer(); }
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); }