From 712ddb512549bbbfa7e3152971c12ca5793d2b16 Mon Sep 17 00:00:00 2001 From: Antoine Fraboulet Date: Mon, 26 Dec 2005 22:54:02 +0000 Subject: [PATCH] - use of History class --- game/duplicate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }