/// <summary> /// AI plays a move /// </summary> public async void PlayAsAI() { if (CanPlay()) { string word = WordProcessor.GetWord(StartLetter); StartLetter = word.LastLetter(); if (StartLetter == "ğ") { StartLetter = "g"; } lastLetterForPlace = word.LastLetter(); AIWords.Add(new ListModel(word)); BaloonSound(); DeletePreviousWords(); AIScore += word.Length * 1; } else { await PopupNavigation.Instance.PushAsync(new FinishPopup(GameState.Win)); } }
/// <summary> /// AI plays the first move /// </summary> public void Start() { string word = WordProcessor.GetWord(); StartLetter = word.LastLetter(); AIWords.Add(new ListModel(word)); BaloonSound(); }