diff --git a/game/duplicate.cpp b/game/duplicate.cpp index cc6a45c..5136e86 100644 --- a/game/duplicate.cpp +++ b/game/duplicate.cpp @@ -77,7 +77,7 @@ void Duplicate::duplicateAI(int n) ASSERT(!m_players[n]->isHuman(), "AI requested for a human player"); AIPlayer *player = static_cast(m_players[n]); - player->compute(*m_dic, m_board, getNTurns()); + player->compute(*m_dic, m_board, m_history.getSize()); if (player->changesLetters()) { @@ -182,7 +182,7 @@ void Duplicate::playRound(const Round &iRound, int n) /* Update the rack and the score of the current player */ player->addPoints(iRound.getPoints()); - player->endTurn(iRound, getNTurns()); + player->endTurn(iRound, m_history.getSize()); m_hasPlayed[n] = true; }