public ShuffleModel GetNextModel() { _matrix = new CharMatrix(_size, _words, _longwords); var model = new ShuffleModel(_matrix, _dfa); return(model); }
public ShuffleModel GetNextModel(char[,] matrix) { _matrix = new CharMatrix(_words, matrix); var model = new ShuffleModel(_matrix, _dfa); return(model); }
void b_generate_Click(object sender, RoutedEventArgs e) { char[,] currentMatrix = GenerateDummyMatrix(); int currSizeInt = -1; var currSizeStr = tb_size.Text; if (int.TryParse(currSizeStr, out currSizeInt)) { if (_currentSize != currSizeInt || _wordShuffler == null) { _currentSize = currSizeInt; _wordShuffler = new WordShuffler.WordShuffler(wordsListPath, _currentSize); } _currentShuffleModel = _wordShuffler.GetNextModel(currentMatrix); } else { _currentShuffleModel = _wordShuffler.GetNextModel(currentMatrix); } printResult(); }
public void GetChars() { model = Dictionary.GetNextModel(); matrix = model.Matrix.GetMatrix(); }